summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler
diff options
context:
space:
mode:
authorcalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-20 00:49:01 +0000
committercalamity@chromium.org <calamity@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-20 00:49:01 +0000
commitbd6c99b1217821c0852e2649249cadbd2f90d0df (patch)
tree359b9fa5c536b904f10656f844488c3d1b41f2e0 /tools/json_schema_compiler
parent0b5c06c89c13277e563773a480a14769f27de598 (diff)
downloadchromium_src-bd6c99b1217821c0852e2649249cadbd2f90d0df.zip
chromium_src-bd6c99b1217821c0852e2649249cadbd2f90d0df.tar.gz
chromium_src-bd6c99b1217821c0852e2649249cadbd2f90d0df.tar.bz2
json_schema_compiler: make util::AddItemToList take a const reference to match the compiler.
BUG= TEST= Review URL: http://codereview.chromium.org/9423035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122725 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler')
-rw-r--r--tools/json_schema_compiler/util.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/json_schema_compiler/util.cc b/tools/json_schema_compiler/util.cc
index b0e98f6..468df83 100644
--- a/tools/json_schema_compiler/util.cc
+++ b/tools/json_schema_compiler/util.cc
@@ -47,7 +47,7 @@ void AddItemToList(const double from, base::ListValue* out) {
void AddItemToList(const std::string& from, base::ListValue* out) {
out->Append(base::Value::CreateStringValue(from));
}
-void AddItemToList(const linked_ptr<base::DictionaryValue> from,
+void AddItemToList(const linked_ptr<base::DictionaryValue>& from,
base::ListValue* out) {
out->Append(static_cast<Value*>(from->DeepCopy()));
}