OSDN Git Service

Fix a code ugliness issue: avoid using two variables named "size" inside the same...
authorAndrei Popescu <andreip@google.com>
Fri, 8 Jan 2010 16:55:35 +0000 (16:55 +0000)
committerAndrei Popescu <andreip@google.com>
Fri, 8 Jan 2010 16:55:35 +0000 (16:55 +0000)
WebKit/android/jni/WebStorage.cpp

index f175fd3..07e4880 100644 (file)
@@ -93,9 +93,9 @@ static unsigned long long GetUsageForOrigin(JNIEnv* env, jobject obj, jstring or
         if (manifestOrigin.get() == 0)
             continue;
         if (manifestOrigin->isSameSchemeHostPort(securityOrigin.get())) {
-            int64_t size = 0;
-            WebCore::cacheStorage().cacheGroupSize(manifestUrls[i].string(), &size);
-            usage += size;
+            int64_t cacheSize = 0;
+            WebCore::cacheStorage().cacheGroupSize(manifestUrls[i].string(), &cacheSize);
+            usage += cacheSize;
         }
     }
     return usage;