aboutsummaryrefslogtreecommitdiff
path: root/strutil.cc
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2016-11-01 14:49:08 -0700
committerDan Willemsen <dwillemsen@google.com>2016-11-01 14:49:46 -0700
commitcb2ff8558ced3ddc021823a3c86bc7ce02dcbdc3 (patch)
treea1c65ac2a0f2ef41fbb29ea16c27f1ad5ccdc2d4 /strutil.cc
parentba9de4bc7eb7327d1177270d0956d6cb7aaf1d9c (diff)
Fix some possible performance issues found by clang-tidy
No obvious time differences when building AOSP, but these all seem like reasonable changes.
Diffstat (limited to 'strutil.cc')
-rw-r--r--strutil.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/strutil.cc b/strutil.cc
index 1b99dff..b094198 100644
--- a/strutil.cc
+++ b/strutil.cc
@@ -500,7 +500,7 @@ string ConcatDir(StringPiece b, StringPiece n) {
return r;
}
-string EchoEscape(const string str) {
+string EchoEscape(const string &str) {
const char *in = str.c_str();
string buf;
for (; *in; in++) {