From 5d30f92bf4e9f055d44ea0db2327b036ae41eef6 Mon Sep 17 00:00:00 2001 From: "vabr@chromium.org" Date: Fri, 3 Aug 2012 08:43:37 +0000 Subject: Correct const accessors in base/values.(h|cc), Part II (ListValue) For problem description and other info please see the BUG page. This is for ListValue. BUG=138946 TEST=N/A (no fix & no new feature) TBR=jar,zelidrag,scottbyer,mpcomplete,darin,achuith,sky,estade,atwilson,grt,thakis,jamesr,hans,sadrul,pastarmovj Review URL: https://chromiumcodereview.appspot.com/10837044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149819 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/json_schema_compiler/util.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/json_schema_compiler/util.cc') diff --git a/tools/json_schema_compiler/util.cc b/tools/json_schema_compiler/util.cc index 9d8abd5..ca5c25a 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* out) { - Value* value = NULL; + const Value* value = NULL; if (!from.Get(index, &value)) return false; scoped_ptr 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* out) { - DictionaryValue* dict = NULL; + const DictionaryValue* dict = NULL; if (!from.GetDictionary(index, &dict)) return false; *out = linked_ptr(dict->DeepCopy()); -- cgit v1.1