From db444d2063df6c574882d9263e885c4fe1134133 Mon Sep 17 00:00:00 2001 From: weili Date: Thu, 2 Jun 2016 15:48:15 -0700 Subject: Fix all the code which has duplicate variable declarations When there are duplicate variable declarations, the inner names shadow the outter ones. This is error prone and harder to read. Remove all the instances found by /analyze. BUG=chromium:613623, chromium:427616 Review-Url: https://codereview.chromium.org/2027273002 --- fpdfsdk/jsapi/fxjs_v8_embeddertest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fpdfsdk/jsapi') diff --git a/fpdfsdk/jsapi/fxjs_v8_embeddertest.cpp b/fpdfsdk/jsapi/fxjs_v8_embeddertest.cpp index 161487f356..a8358c4ee9 100644 --- a/fpdfsdk/jsapi/fxjs_v8_embeddertest.cpp +++ b/fpdfsdk/jsapi/fxjs_v8_embeddertest.cpp @@ -64,7 +64,7 @@ TEST_F(FXJSV8EmbedderTest, MultipleRutimes) { { v8::Local context1 = v8::Local::New(isolate(), global_context1); - v8::Context::Scope context_scope(context1); + v8::Context::Scope context_scope1(context1); ExecuteInCurrentContext(kScript1); CheckAssignmentInCurrentContext(kExpected1); } @@ -73,7 +73,7 @@ TEST_F(FXJSV8EmbedderTest, MultipleRutimes) { { v8::Local context2 = v8::Local::New(isolate(), global_context2); - v8::Context::Scope context_scope(context2); + v8::Context::Scope context_scope2(context2); ExecuteInCurrentContext(kScript2); CheckAssignmentInCurrentContext(kExpected2); } -- cgit v1.2.3