Fix all C6246 warnings: Local declaration hides declaration of the same name in outer scope. (#3027)

* Fix all C6246 warnings: Local declaration hides declaration of the same name in outer scope.

* Removing outter scope `global`
This commit is contained in:
Gilberto Stankiewicz
2020-01-28 22:17:14 -08:00
committed by GitHub
parent 10d52419f3
commit e011086883
4 changed files with 21 additions and 23 deletions
@@ -241,15 +241,15 @@ namespace CefSharp
auto frames = CefListValue::Create();
for (auto i = 0; i < stackTrace->GetFrameCount(); i++)
{
auto frame = CefListValue::Create();
auto stackTraceFrame = CefListValue::Create();
auto frameArg = stackTrace->GetFrame(i);
frame->SetString(0, frameArg->GetFunctionName());
frame->SetInt(1, frameArg->GetLineNumber());
frame->SetInt(2, frameArg->GetColumn());
frame->SetString(3, frameArg->GetScriptNameOrSourceURL());
stackTraceFrame->SetString(0, frameArg->GetFunctionName());
stackTraceFrame->SetInt(1, frameArg->GetLineNumber());
stackTraceFrame->SetInt(2, frameArg->GetColumn());
stackTraceFrame->SetString(3, frameArg->GetScriptNameOrSourceURL());
frames->SetList(i, frame);
frames->SetList(i, stackTraceFrame);
}
list->SetList(1, frames);
@@ -579,8 +579,8 @@ namespace CefSharp
for (auto i = 0; i < javascriptObjects->Count; i++)
{
auto dict = CefDictionaryValue::Create();
auto name = javascriptObjects[i]->JavascriptName;
dict->SetString("Name", StringUtils::ToNative(name));
auto objectName = javascriptObjects[i]->JavascriptName;
dict->SetString("Name", StringUtils::ToNative(objectName));
dict->SetBool("IsCached", false);
dict->SetBool("AlreadyBound", false);