From 294300a62be265e4b17eb9df0ee4ddfd543a1fb4 Mon Sep 17 00:00:00 2001 From: "mmentovai@google.com" Date: Wed, 6 Aug 2008 15:46:49 +0000 Subject: 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 --- base/json_writer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'base/json_writer.cc') 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); } -- cgit v1.1