Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2260)

Unified Diff: dbus/message.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ugh Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dbus/end_to_end_async_unittest.cc ('k') | dbus/message_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dbus/message.cc
diff --git a/dbus/message.cc b/dbus/message.cc
index ce53a485375fdcbe07400c3841e35e0cdf5c66b2..737b0c494bfe3f449abc230844a51268117778cf 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) {
« no previous file with comments | « dbus/end_to_end_async_unittest.cc ('k') | dbus/message_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698