diff options
author | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 15:46:49 +0000 |
---|---|---|
committer | mmentovai@google.com <mmentovai@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 15:46:49 +0000 |
commit | 294300a62be265e4b17eb9df0ee4ddfd543a1fb4 (patch) | |
tree | 0b794a735c8d8e9992105bb5a7c22fac68f583ea /base/json_writer.cc | |
parent | 7485061dd4022edb389503f0f8cc53421e49eb83 (diff) | |
download | chromium_src-294300a62be265e4b17eb9df0ee4ddfd543a1fb4.zip chromium_src-294300a62be265e4b17eb9df0ee4ddfd543a1fb4.tar.gz chromium_src-294300a62be265e4b17eb9df0ee4ddfd543a1fb4.tar.bz2 |
Portability fix for JSONWriter. gcc warns when the declaration order doesn't match the initialization order. Tossed in a couple of changes for better style guide conformance for good measure.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@433 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/json_writer.cc')
-rw-r--r-- | base/json_writer.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/base/json_writer.cc b/base/json_writer.cc index 512e0a1..0a1b8bb 100644 --- a/base/json_writer.cc +++ b/base/json_writer.cc @@ -49,8 +49,8 @@ void JSONWriter::Write(const Value* const node, bool pretty_print, } JSONWriter::JSONWriter(bool pretty_print, std::string* json) - : pretty_print_(pretty_print), - json_string_(json) { + : json_string_(json), + pretty_print_(pretty_print) { DCHECK(json); } |