From 66433c18695028ed1640a643a74f9650c52de6ef Mon Sep 17 00:00:00 2001 From: Marshall Greenblatt Date: Wed, 1 Apr 2020 15:43:05 -0400 Subject: [PATCH] Windows: Fix warning C4457: declaration of 'result' hides function parameter in VS2019 --- tests/cefclient/browser/media_router_test.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/cefclient/browser/media_router_test.cc b/tests/cefclient/browser/media_router_test.cc index e9e19730c..6a2e0ac08 100644 --- a/tests/cefclient/browser/media_router_test.cc +++ b/tests/cefclient/browser/media_router_test.cc @@ -68,9 +68,9 @@ class MediaRouteCreateCallback : public CefMediaRouteCreateCallback { CefRefPtr route) OVERRIDE { CEF_REQUIRE_UI_THREAD(); if (result == CEF_MRCR_OK) { - CefRefPtr result = CefDictionaryValue::Create(); - result->SetString(kRouteKey, route->GetId()); - SendSuccess(create_callback_, result); + CefRefPtr dict = CefDictionaryValue::Create(); + dict->SetString(kRouteKey, route->GetId()); + SendSuccess(create_callback_, dict); } else { SendFailure(create_callback_, kRequestFailedError + result, error); }