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

Unified Diff: chrome/common/json_value_serializer.h

Issue 155025: Fixing unitialized variable (Coverity nit). (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/json_value_serializer.h
===================================================================
--- chrome/common/json_value_serializer.h (revision 19850)
+++ chrome/common/json_value_serializer.h (working copy)
@@ -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 @@
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 @@
// If true, deserialization will allow trailing commas.
bool allow_trailing_comma_;
- DISALLOW_EVIL_CONSTRUCTORS(JSONStringValueSerializer);
+ DISALLOW_COPY_AND_ASSIGN(JSONStringValueSerializer);
};
class JSONFileValueSerializer : public ValueSerializer {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698