Windows: Fix warning C4457: declaration of 'result' hides function parameter in VS2019

This commit is contained in:
Marshall Greenblatt 2020-04-01 15:43:05 -04:00
parent 869ae21c9f
commit 66433c1869
1 changed files with 3 additions and 3 deletions

View File

@ -68,9 +68,9 @@ class MediaRouteCreateCallback : public CefMediaRouteCreateCallback {
CefRefPtr<CefMediaRoute> route) OVERRIDE {
CEF_REQUIRE_UI_THREAD();
if (result == CEF_MRCR_OK) {
CefRefPtr<CefDictionaryValue> result = CefDictionaryValue::Create();
result->SetString(kRouteKey, route->GetId());
SendSuccess(create_callback_, result);
CefRefPtr<CefDictionaryValue> dict = CefDictionaryValue::Create();
dict->SetString(kRouteKey, route->GetId());
SendSuccess(create_callback_, dict);
} else {
SendFailure(create_callback_, kRequestFailedError + result, error);
}