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

Unified Diff: base/json/json_value_converter.h

Issue 10837044: Correct const accessors in base/values.(h|cc), Part II (ListValue) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: David's comments Created 8 years, 4 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 | « base/debug/trace_event_unittest.cc ('k') | base/json/json_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/json/json_value_converter.h
diff --git a/base/json/json_value_converter.h b/base/json/json_value_converter.h
index 9d3036a429abd2aaf4f949995ee69cb8ac2bd8da..69da0d81f207d40ad8b962241fbf423e0ae411e8 100644
--- a/base/json/json_value_converter.h
+++ b/base/json/json_value_converter.h
@@ -273,7 +273,7 @@ class RepeatedValueConverter : public ValueConverter<ScopedVector<Element> > {
field->reserve(list->GetSize());
for (size_t i = 0; i < list->GetSize(); ++i) {
- base::Value* element = NULL;
+ const base::Value* element = NULL;
if (!list->Get(i, &element))
continue;
@@ -307,7 +307,7 @@ class RepeatedMessageConverter
field->reserve(list->GetSize());
for (size_t i = 0; i < list->GetSize(); ++i) {
- base::Value* element = NULL;
+ const base::Value* element = NULL;
if (!list->Get(i, &element))
continue;
@@ -344,7 +344,7 @@ class RepeatedCustomValueConverter
field->reserve(list->GetSize());
for (size_t i = 0; i < list->GetSize(); ++i) {
- base::Value* element = NULL;
+ const base::Value* element = NULL;
if (!list->Get(i, &element))
continue;
« no previous file with comments | « base/debug/trace_event_unittest.cc ('k') | base/json/json_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698