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

Unified Diff: chrome/common/content_settings_pattern_parser.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: chrome/common/content_settings_pattern_parser.cc
diff --git a/chrome/common/content_settings_pattern_parser.cc b/chrome/common/content_settings_pattern_parser.cc
index 2f823cc61ce928266f879fb5bf19d8e1d8b788f6..d66143cde3ca53a87b9e746cf378c4268b3cf653 100644
--- a/chrome/common/content_settings_pattern_parser.cc
+++ b/chrome/common/content_settings_pattern_parser.cc
@@ -198,7 +198,7 @@ std::string PatternParser::ToString(
parts.is_port_wildcard)
return "*";
- std::string str = "";
+ std::string str = std::string();
if (!parts.is_scheme_wildcard)
str += parts.scheme + content::kStandardSchemeSeparator;

Powered by Google App Engine
This is Rietveld 408576698