diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-13 19:56:17 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-13 19:56:17 +0000 |
commit | 11f48572859aca238afeb436d2504c5ffab49f07 (patch) | |
tree | 1b31af349eb99a9e83716f5add3273b42bee41cf /chrome/common/json_value_serializer.h | |
parent | af530ac147feb1b04446f529daa4cc4448f89b23 (diff) | |
download | chromium_src-11f48572859aca238afeb436d2504c5ffab49f07.zip chromium_src-11f48572859aca238afeb436d2504c5ffab49f07.tar.gz chromium_src-11f48572859aca238afeb436d2504c5ffab49f07.tar.bz2 |
Fixes almost all of the rest of lint errors in the chrome/ directory (minus the really hard ones which will need actual review instead of rubber-stamping.)
Review URL: http://codereview.chromium.org/386026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31932 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/json_value_serializer.h')
-rw-r--r-- | chrome/common/json_value_serializer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/json_value_serializer.h b/chrome/common/json_value_serializer.h index 3dd8f14..1f1e556 100644 --- a/chrome/common/json_value_serializer.h +++ b/chrome/common/json_value_serializer.h @@ -16,7 +16,7 @@ class JSONStringValueSerializer : public ValueSerializer { // json_string is the string that will be source of the deserialization // or the destination of the serialization. The caller of the constructor // retains ownership of the string. - JSONStringValueSerializer(std::string* json_string) + explicit JSONStringValueSerializer(std::string* json_string) : json_string_(json_string), initialized_with_const_string_(false), pretty_print_(false), @@ -25,7 +25,7 @@ class JSONStringValueSerializer : public ValueSerializer { // This version allows initialization with a const string reference for // deserialization only. - JSONStringValueSerializer(const std::string& json_string) + explicit JSONStringValueSerializer(const std::string& json_string) : json_string_(&const_cast<std::string&>(json_string)), initialized_with_const_string_(true), pretty_print_(false), |