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

Unified Diff: ios/chrome/common/string_util.h

Issue 1349783006: Cleanup: Pass std::string as const reference if possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert third_party changes Created 5 years, 3 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: ios/chrome/common/string_util.h
diff --git a/ios/chrome/common/string_util.h b/ios/chrome/common/string_util.h
index b0813212ca5abf64a46777b4760a00e683e6b1a8..b977c4b05a82824d95faf9d05e320327926eb197 100644
--- a/ios/chrome/common/string_util.h
+++ b/ios/chrome/common/string_util.h
@@ -27,7 +27,8 @@ NSCharacterSet* GraphicCharactersSet();
NSString* CleanNSStringForDisplay(NSString* dirty, BOOL removeGraphicChars);
// Cleans a std::string identically to CleanNSStringForDisplay()
-std::string CleanStringForDisplay(std::string dirty, BOOL removeGraphicChars);
+std::string CleanStringForDisplay(const std::string& dirty,
+ BOOL removeGraphicChars);
// Find the longest leading substring of |string| that, when rendered with
// |attributes|, will fit on a single line inside |targetWidth|. If |trailing|

Powered by Google App Engine
This is Rietveld 408576698