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

Unified Diff: net/ftp/ftp_util.cc

Issue 13145003: Rewrite std::string("") to std::string(), Linux edition. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-run on ToT, revert third_party changes and fix vexing parses. 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
Index: net/ftp/ftp_util.cc
diff --git a/net/ftp/ftp_util.cc b/net/ftp/ftp_util.cc
index 0eab4652c3fb6a903bbb9fbc94aef4c3c93dab82..68307a2b41bafe1628964626ab9742ff720dde49 100644
--- a/net/ftp/ftp_util.cc
+++ b/net/ftp/ftp_util.cc
@@ -107,7 +107,7 @@ std::string FtpUtil::VMSPathToUnix(const std::string& vms_path) {
std::string result(vms_path);
if (vms_path[0] == '[') {
// It's a relative path.
- ReplaceFirstSubstringAfterOffset(&result, 0, "[.", "");
+ ReplaceFirstSubstringAfterOffset(&result, 0, "[.", std::string());
} else {
// It's an absolute path.
result.insert(0, "/");

Powered by Google App Engine
This is Rietveld 408576698