From f125a429feba24f77e5b1c6cda4dfadcbe50aa16 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Thu, 4 Feb 2010 11:32:41 +0000 Subject: Renames a variable in AddJavascriptInterface which shadows a parameter of the same name Change-Id: I9600c489090def7f4ec6e1e66f8db68ed6551c80 --- WebKit/android/jni/WebCoreFrameBridge.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WebKit/android/jni/WebCoreFrameBridge.cpp b/WebKit/android/jni/WebCoreFrameBridge.cpp index 84cd70c..2e1d110 100644 --- a/WebKit/android/jni/WebCoreFrameBridge.cpp +++ b/WebKit/android/jni/WebCoreFrameBridge.cpp @@ -1308,8 +1308,8 @@ static void AddJavascriptInterface(JNIEnv *env, jobject obj, jint nativeFramePoi PassRefPtr addedObject = WeakJavaInstance::create(javascriptObj); const char* name = getCharactersFromJStringInEnv(env, interfaceName); // Pass ownership of the added object to bindToWindowObject. - NPObject* obj = JavaInstanceToNPObject(addedObject.releaseRef()); - pFrame->script()->bindToWindowObject(pFrame, name, obj); + NPObject* npObject = JavaInstanceToNPObject(addedObject.releaseRef()); + pFrame->script()->bindToWindowObject(pFrame, name, npObject); // bindToWindowObject calls NPN_RetainObject on the // returned one (see createV8ObjectForNPObject in V8NPObject.cpp). // bindToWindowObject also increases obj's ref count and decreases @@ -1321,7 +1321,7 @@ static void AddJavascriptInterface(JNIEnv *env, jobject obj, jint nativeFramePoi // we use WebCore/bindings/v8/npruntime.cpp (rather than // WebCore/bridge/npruntime.cpp), so the function is implemented there. // TODO: Combine the two versions of these NPAPI files. - NPN_ReleaseObject(obj); + NPN_ReleaseObject(npObject); releaseCharactersForJString(interfaceName, name); } #endif -- cgit v1.1