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 /ipc | |
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 'ipc')
-rw-r--r-- | ipc/ipc_message_unittest.cc | 4 | ||||
-rw-r--r-- | ipc/ipc_message_utils.cc | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/ipc/ipc_message_unittest.cc b/ipc/ipc_message_unittest.cc index 9480fe6..b859dcf 100644 --- a/ipc/ipc_message_unittest.cc +++ b/ipc/ipc_message_unittest.cc @@ -13,7 +13,7 @@ TEST(IPCMessageTest, ListValue) { ListValue input; - input.Set(0, Value::CreateRealValue(42.42)); + input.Set(0, Value::CreateDoubleValue(42.42)); input.Set(1, Value::CreateStringValue("forty")); input.Set(2, Value::CreateNullValue()); @@ -44,7 +44,7 @@ TEST(IPCMessageTest, DictionaryValue) { subdict->Set("bool", Value::CreateBooleanValue(false)); scoped_ptr<ListValue> sublist(new ListValue()); - sublist->Set(0, Value::CreateRealValue(42.42)); + sublist->Set(0, Value::CreateDoubleValue(42.42)); sublist->Set(1, Value::CreateStringValue("forty")); sublist->Set(2, Value::CreateStringValue("two")); subdict->Set("list", sublist.release()); diff --git a/ipc/ipc_message_utils.cc b/ipc/ipc_message_utils.cc index f25d4f9..5216a86 100644 --- a/ipc/ipc_message_utils.cc +++ b/ipc/ipc_message_utils.cc @@ -49,9 +49,9 @@ static void WriteValue(Message* m, const Value* value, int recursion) { WriteParam(m, val); break; } - case Value::TYPE_REAL: { + case Value::TYPE_DOUBLE: { double val; - value->GetAsReal(&val); + value->GetAsDouble(&val); WriteParam(m, val); break; } @@ -166,11 +166,11 @@ static bool ReadValue(const Message* m, void** iter, Value** value, *value = Value::CreateIntegerValue(val); break; } - case Value::TYPE_REAL: { + case Value::TYPE_DOUBLE: { double val; if (!ReadParam(m, iter, &val)) return false; - *value = Value::CreateRealValue(val); + *value = Value::CreateDoubleValue(val); break; } case Value::TYPE_STRING: { |