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

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: another rebase 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
« no previous file with comments | « base/trace_event/trace_event_system_stats_monitor.cc ('k') | cc/debug/traced_picture.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/values.cc
diff --git a/base/values.cc b/base/values.cc
index 4093eba67aaf39be6ef8f648e49dfebacce1c39c..ebd7157d3c9cc352511f2b7c54521ad79b140fe2 100644
--- a/base/values.cc
+++ b/base/values.cc
@@ -1168,9 +1168,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;
}
« no previous file with comments | « base/trace_event/trace_event_system_stats_monitor.cc ('k') | cc/debug/traced_picture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698