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

Unified Diff: tools/json_schema_compiler/util.cc

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, 5 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 | « tools/json_schema_compiler/util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/util.cc
diff --git a/tools/json_schema_compiler/util.cc b/tools/json_schema_compiler/util.cc
index 9d8abd5cdab51e75e72ce5e9dc54089e8109d1fa..ca5c25ab8289d52763c8e21046e9b87b717aba2a 100644
--- a/tools/json_schema_compiler/util.cc
+++ b/tools/json_schema_compiler/util.cc
@@ -28,7 +28,7 @@ bool GetItemFromList(const ListValue& from, int index, std::string* out) {
bool GetItemFromList(const ListValue& from, int index,
linked_ptr<any::Any>* out) {
- Value* value = NULL;
+ const Value* value = NULL;
if (!from.Get(index, &value))
return false;
scoped_ptr<any::Any> any_object(new any::Any());
@@ -39,7 +39,7 @@ bool GetItemFromList(const ListValue& from, int index,
bool GetItemFromList(const ListValue& from, int index,
linked_ptr<base::DictionaryValue>* out) {
- DictionaryValue* dict = NULL;
+ const DictionaryValue* dict = NULL;
if (!from.GetDictionary(index, &dict))
return false;
*out = linked_ptr<DictionaryValue>(dict->DeepCopy());
« no previous file with comments | « tools/json_schema_compiler/util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698