Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(882)

Unified Diff: base/json/json_parser.cc

Issue 881003003: Fix shadowing warning in json_parser on VS2015 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2015-safe_sprintf
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/json/json_parser.cc
diff --git a/base/json/json_parser.cc b/base/json/json_parser.cc
index 6a25bc7b481a3e1ca28b5532ad07ce957b360380..d42b1a3d37e820f0ff3f1b6cfb00dde6e3be9fc8 100644
--- a/base/json/json_parser.cc
+++ b/base/json/json_parser.cc
@@ -428,7 +428,7 @@ bool JSONParser::EatComment() {
if (next_char == '/') {
// Single line comment, read to newline.
while (CanConsume(1)) {
- char next_char = *NextChar();
+ next_char = *NextChar();
if (next_char == '\n' || next_char == '\r')
return true;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698