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

Unified Diff: base/values.cc

Issue 1131113004: Convert JsonWriter::Write to taking a const ref for the in-param (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix platform specific stuff Created 5 years, 7 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
Index: base/values.cc
diff --git a/base/values.cc b/base/values.cc
index f448f51d2bd3821005d85e976418882c1230466c..d4fbf1c553cb7928892c97d2cbcd4b19b451f5bc 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -1164,9 +1164,7 @@ ValueDeserializer::~ValueDeserializer() {
std::ostream& operator<<(std::ostream& out, const Value& value) {
std::string json;
- JSONWriter::WriteWithOptions(&value,
- JSONWriter::OPTIONS_PRETTY_PRINT,
- &json);
+ JSONWriter::WriteWithOptions(value, JSONWriter::OPTIONS_PRETTY_PRINT, &json);
return out << json;
}

Powered by Google App Engine
This is Rietveld 408576698