Fix more code which has shadow variables

The code has local variables that shadow struct or class member
variables. Also, when this happens, different variable names should be
used instead of namespaces.
These were discovered by /Wshadow warning flag in Clang.

Review-Url: https://codereview.chromium.org/2034253003
diff --git a/fpdfsdk/javascript/Consts.cpp b/fpdfsdk/javascript/Consts.cpp
index 8aeb0b9..b71d0a3 100644
--- a/fpdfsdk/javascript/Consts.cpp
+++ b/fpdfsdk/javascript/Consts.cpp
@@ -137,21 +137,21 @@
   GLOBAL_STRING(pRuntime, L"IDS_STARTUP_CONSOLE_MSG", L"** ^ _ ^ **");
 }
 
-#define GLOBAL_ARRAY(rt, name, ...)                                   \
-  {                                                                   \
-    const FX_WCHAR* values[] = {__VA_ARGS__};                         \
-    v8::Local<v8::Array> array = FXJS_NewArray((rt)->GetIsolate());   \
-    for (size_t i = 0; i < FX_ArraySize(values); ++i)                 \
-      array->Set(i, FXJS_NewString((rt)->GetIsolate(), values[i]));   \
-    rt->SetConstArray(name, array);                                   \
-    FXJS_DefineGlobalConst(                                           \
-        (rt)->GetIsolate(), (name),                                   \
-        [](const v8::FunctionCallbackInfo<v8::Value>& info) {         \
-          CJS_Runtime* pRuntime = static_cast<CJS_Runtime*>(          \
-              FXJS_GetRuntimeFromIsolate(info.GetIsolate()));         \
-          if (pRuntime)                                               \
-            info.GetReturnValue().Set(pRuntime->GetConstArray(name)); \
-        });                                                           \
+#define GLOBAL_ARRAY(rt, name, ...)                                        \
+  {                                                                        \
+    const FX_WCHAR* values[] = {__VA_ARGS__};                              \
+    v8::Local<v8::Array> array = FXJS_NewArray((rt)->GetIsolate());        \
+    for (size_t i = 0; i < FX_ArraySize(values); ++i)                      \
+      array->Set(i, FXJS_NewString((rt)->GetIsolate(), values[i]));        \
+    rt->SetConstArray(name, array);                                        \
+    FXJS_DefineGlobalConst(                                                \
+        (rt)->GetIsolate(), (name),                                        \
+        [](const v8::FunctionCallbackInfo<v8::Value>& info) {              \
+          CJS_Runtime* pLocalRuntime = static_cast<CJS_Runtime*>(          \
+              FXJS_GetRuntimeFromIsolate(info.GetIsolate()));              \
+          if (pLocalRuntime)                                               \
+            info.GetReturnValue().Set(pLocalRuntime->GetConstArray(name)); \
+        });                                                                \
   }
 
 void CJS_GlobalArrays::DefineJSObjects(CJS_Runtime* pRuntime) {