Index: tools/json_schema_compiler/util.h |
diff --git a/tools/json_schema_compiler/util.h b/tools/json_schema_compiler/util.h |
index f0459dcd0d961b3b2dc4965fc0dda66f9e5122e6..61148c616a4e6ac2b268b61feb25331c1f50dde3 100644 |
--- a/tools/json_schema_compiler/util.h |
+++ b/tools/json_schema_compiler/util.h |
@@ -67,7 +67,7 @@ bool PopulateArrayFromDictionary( |
const base::DictionaryValue& from, |
const std::string& name, |
std::vector<T>* out) { |
- base::ListValue* list = NULL; |
+ const base::ListValue* list = NULL; |
if (!from.GetListWithoutPathExpansion(name, &list)) |
return false; |
@@ -102,16 +102,16 @@ bool PopulateOptionalArrayFromDictionary( |
const base::DictionaryValue& from, |
const std::string& name, |
scoped_ptr<std::vector<T> >* out) { |
- base::ListValue* list = NULL; |
+ const base::ListValue* list = NULL; |
{ |
- base::Value* maybe_list = NULL; |
+ const base::Value* maybe_list = NULL; |
// Since |name| is optional, its absence is acceptable. However, anything |
// other than a ListValue is not. |
if (!from.GetWithoutPathExpansion(name, &maybe_list)) |
return true; |
if (!maybe_list->IsType(base::Value::TYPE_LIST)) |
return false; |
- list = static_cast<base::ListValue*>(maybe_list); |
+ list = static_cast<const base::ListValue*>(maybe_list); |
} |
return PopulateOptionalArrayFromList(*list, out); |