From fb534c949f92bec8c6312b58ffcc04c5dc488f2d Mon Sep 17 00:00:00 2001 From: "arv@chromium.org" Date: Tue, 1 Feb 2011 01:02:07 +0000 Subject: 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 --- ipc/ipc_message_unittest.cc | 4 ++-- ipc/ipc_message_utils.cc | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'ipc') 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 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: { -- cgit v1.1