diff options
author | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-01 01:02:07 +0000 |
---|---|---|
committer | arv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-01 01:02:07 +0000 |
commit | fb534c949f92bec8c6312b58ffcc04c5dc488f2d (patch) | |
tree | 84384bdb8b06e62662ce1a5e9619ae455e9a69a8 /base/values.h | |
parent | efeb669b05db99c54309771e4884b1a17d604a37 (diff) | |
download | chromium_src-fb534c949f92bec8c6312b58ffcc04c5dc488f2d.zip chromium_src-fb534c949f92bec8c6312b58ffcc04c5dc488f2d.tar.gz chromium_src-fb534c949f92bec8c6312b58ffcc04c5dc488f2d.tar.bz2 |
Rename Real* to Double* in values.* and dependent files
BUG=None
TEST=Compiles and passes all tests
Review URL: http://codereview.chromium.org/6248026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73232 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values.h')
-rw-r--r-- | base/values.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/base/values.h b/base/values.h index 135a30f..408ca8b 100644 --- a/base/values.h +++ b/base/values.h @@ -50,7 +50,7 @@ class Value { TYPE_NULL = 0, TYPE_BOOLEAN, TYPE_INTEGER, - TYPE_REAL, + TYPE_DOUBLE, TYPE_STRING, TYPE_BINARY, TYPE_DICTIONARY, @@ -65,7 +65,7 @@ class Value { static Value* CreateNullValue(); static FundamentalValue* CreateBooleanValue(bool in_value); static FundamentalValue* CreateIntegerValue(int in_value); - static FundamentalValue* CreateRealValue(double in_value); + static FundamentalValue* CreateDoubleValue(double in_value); static StringValue* CreateStringValue(const std::string& in_value); static StringValue* CreateStringValue(const string16& in_value); @@ -89,7 +89,7 @@ class Value { // returned; otherwise, false is returned and |out_value| is unchanged. virtual bool GetAsBoolean(bool* out_value) const; virtual bool GetAsInteger(int* out_value) const; - virtual bool GetAsReal(double* out_value) const; + virtual bool GetAsDouble(double* out_value) const; virtual bool GetAsString(std::string* out_value) const; virtual bool GetAsString(string16* out_value) const; virtual bool GetAsList(ListValue** out_value); @@ -132,7 +132,7 @@ class FundamentalValue : public Value { // Subclassed methods virtual bool GetAsBoolean(bool* out_value) const; virtual bool GetAsInteger(int* out_value) const; - virtual bool GetAsReal(double* out_value) const; + virtual bool GetAsDouble(double* out_value) const; virtual FundamentalValue* DeepCopy() const; virtual bool Equals(const Value* other) const; @@ -140,7 +140,7 @@ class FundamentalValue : public Value { union { bool boolean_value_; int integer_value_; - double real_value_; + double double_value_; }; DISALLOW_COPY_AND_ASSIGN(FundamentalValue); @@ -237,7 +237,7 @@ class DictionaryValue : public Value { // value at that path, even if it has a different type. void SetBoolean(const std::string& path, bool in_value); void SetInteger(const std::string& path, int in_value); - void SetReal(const std::string& path, double in_value); + void SetDouble(const std::string& path, double in_value); void SetString(const std::string& path, const std::string& in_value); void SetString(const std::string& path, const string16& in_value); @@ -259,7 +259,7 @@ class DictionaryValue : public Value { // the end of the path can be returned in the form specified. bool GetBoolean(const std::string& path, bool* out_value) const; bool GetInteger(const std::string& path, int* out_value) const; - bool GetReal(const std::string& path, double* out_value) const; + bool GetDouble(const std::string& path, double* out_value) const; bool GetString(const std::string& path, std::string* out_value) const; bool GetString(const std::string& path, string16* out_value) const; bool GetStringASCII(const std::string& path, std::string* out_value) const; @@ -274,7 +274,7 @@ class DictionaryValue : public Value { Value** out_value) const; bool GetIntegerWithoutPathExpansion(const std::string& key, int* out_value) const; - bool GetRealWithoutPathExpansion(const std::string& key, + bool GetDoubleWithoutPathExpansion(const std::string& key, double* out_value) const; bool GetStringWithoutPathExpansion(const std::string& key, std::string* out_value) const; @@ -377,7 +377,7 @@ class ListValue : public Value { // in the specified form. bool GetBoolean(size_t index, bool* out_value) const; bool GetInteger(size_t index, int* out_value) const; - bool GetReal(size_t index, double* out_value) const; + bool GetDouble(size_t index, double* out_value) const; bool GetString(size_t index, std::string* out_value) const; bool GetString(size_t index, string16* out_value) const; bool GetBinary(size_t index, BinaryValue** out_value) const; |