summaryrefslogtreecommitdiffstats
path: root/dbus/message.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dbus/message.cc')
-rw-r--r--dbus/message.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbus/message.cc b/dbus/message.cc
index ce53a48..737b0c4 100644
--- a/dbus/message.cc
+++ b/dbus/message.cc
@@ -87,7 +87,7 @@ std::string Message::GetMessageTypeAsString() {
return "MESSAGE_ERROR";
}
NOTREACHED();
- return "";
+ return std::string();
}
std::string Message::ToStringInternal(const std::string& indent,
@@ -251,7 +251,7 @@ std::string Message::ToStringInternal(const std::string& indent,
// ...
std::string Message::ToString() {
if (!raw_message_)
- return "";
+ return std::string();
// Generate headers first.
std::string headers;
@@ -268,7 +268,7 @@ std::string Message::ToString() {
// Generate the payload.
MessageReader reader(this);
- return headers + "\n" + ToStringInternal("", &reader);
+ return headers + "\n" + ToStringInternal(std::string(), &reader);
}
bool Message::SetDestination(const std::string& destination) {