summaryrefslogtreecommitdiffstats
path: root/chrome/common/json_value_serializer.h
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-03 02:29:18 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-03 02:29:18 +0000
commitca60ca743e46be384d9a639b68dcba2b01e3d433 (patch)
tree4aaf3ddb4d48d200b35ae72c2e90205ddfe4a56f /chrome/common/json_value_serializer.h
parent0b6c134b77e4554c309587989ff10c9293e3ade2 (diff)
downloadchromium_src-ca60ca743e46be384d9a639b68dcba2b01e3d433.zip
chromium_src-ca60ca743e46be384d9a639b68dcba2b01e3d433.tar.gz
chromium_src-ca60ca743e46be384d9a639b68dcba2b01e3d433.tar.bz2
Fixing unitialized variable (Coverity nit).
BUG=None TEST=None Review URL: http://codereview.chromium.org/155025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19888 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/json_value_serializer.h')
-rw-r--r--chrome/common/json_value_serializer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/common/json_value_serializer.h b/chrome/common/json_value_serializer.h
index 2c71e47..3dd8f14 100644
--- a/chrome/common/json_value_serializer.h
+++ b/chrome/common/json_value_serializer.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -28,6 +28,7 @@ class JSONStringValueSerializer : public ValueSerializer {
JSONStringValueSerializer(const std::string& json_string)
: json_string_(&const_cast<std::string&>(json_string)),
initialized_with_const_string_(true),
+ pretty_print_(false),
allow_trailing_comma_(false) {
}
@@ -58,7 +59,7 @@ class JSONStringValueSerializer : public ValueSerializer {
// If true, deserialization will allow trailing commas.
bool allow_trailing_comma_;
- DISALLOW_EVIL_CONSTRUCTORS(JSONStringValueSerializer);
+ DISALLOW_COPY_AND_ASSIGN(JSONStringValueSerializer);
};
class JSONFileValueSerializer : public ValueSerializer {