diff options
author | vabr@chromium.org <vabr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-27 22:27:11 +0000 |
---|---|---|
committer | vabr@chromium.org <vabr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-27 22:27:11 +0000 |
commit | a61890ebc4d1d6f558edfe8a03ba6a6c72a16689 (patch) | |
tree | dc8768892744a98ba9386583a1d27fa575e72a15 /base/json | |
parent | b39a8db3e8e31029e98075863a38f8c3b188529c (diff) | |
download | chromium_src-a61890ebc4d1d6f558edfe8a03ba6a6c72a16689.zip chromium_src-a61890ebc4d1d6f558edfe8a03ba6a6c72a16689.tar.gz chromium_src-a61890ebc4d1d6f558edfe8a03ba6a6c72a16689.tar.bz2 |
Correct const accessors in base/values.(h|cc)
For problem description and other info please see the BUG page.
This is for DictionaryValue.
BUG=138946
TEST=N/A (no fix & no new feature)
TBR=jar scottbyer achuith agl mnissler davemoore garykac akalin hans bulach phajdan.jr jamesr
Review URL: https://chromiumcodereview.appspot.com/10834004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@148833 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/json')
-rw-r--r-- | base/json/json_value_converter.h | 2 | ||||
-rw-r--r-- | base/json/json_writer.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/base/json/json_value_converter.h b/base/json/json_value_converter.h index 2d605e4..9d3036a 100644 --- a/base/json/json_value_converter.h +++ b/base/json/json_value_converter.h @@ -505,7 +505,7 @@ class JSONValueConverter { for(size_t i = 0; i < fields_.size(); ++i) { const internal::FieldConverterBase<StructType>* field_converter = fields_[i]; - base::Value* field = NULL; + const base::Value* field = NULL; if (dictionary_value->Get(field_converter->field_path(), &field)) { if (!field_converter->ConvertField(*field, output)) { DVLOG(1) << "failure at field " << field_converter->field_path(); diff --git a/base/json/json_writer.cc b/base/json/json_writer.cc index e814003..9ca4813 100644 --- a/base/json/json_writer.cc +++ b/base/json/json_writer.cc @@ -173,7 +173,7 @@ void JSONWriter::BuildJSONString(const Value* const node, int depth) { for (DictionaryValue::key_iterator key_itr = dict->begin_keys(); key_itr != dict->end_keys(); ++key_itr) { - Value* value = NULL; + const Value* value = NULL; bool result = dict->GetWithoutPathExpansion(*key_itr, &value); DCHECK(result); |