diff options
Diffstat (limited to 'chromium/dbus/message.cc')
-rw-r--r-- | chromium/dbus/message.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/chromium/dbus/message.cc b/chromium/dbus/message.cc index ec0b2234494..1e5f54af683 100644 --- a/chromium/dbus/message.cc +++ b/chromium/dbus/message.cc @@ -150,7 +150,7 @@ std::string Message::ToStringInternal(const std::string& indent, double value = 0; if (!reader->PopDouble(&value)) return kBrokenMessage; - output += indent + "double " + base::DoubleToString(value) + "\n"; + output += indent + "double " + base::NumberToString(value) + "\n"; break; } case STRING: { @@ -446,8 +446,7 @@ MessageWriter::MessageWriter(Message* message) dbus_message_iter_init_append(message_->raw_message(), &raw_message_iter_); } -MessageWriter::~MessageWriter() { -} +MessageWriter::~MessageWriter() = default; void MessageWriter::AppendByte(uint8_t value) { AppendBasic(DBUS_TYPE_BYTE, &value); @@ -716,9 +715,7 @@ MessageReader::MessageReader(Message* message) dbus_message_iter_init(message_->raw_message(), &raw_message_iter_); } - -MessageReader::~MessageReader() { -} +MessageReader::~MessageReader() = default; bool MessageReader::HasMoreData() { const int dbus_type = dbus_message_iter_get_arg_type(&raw_message_iter_); |