aboutsummaryrefslogtreecommitdiff
path: root/rule.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 /rule.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 'rule.cc')
-rw-r--r--rule.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/rule.cc b/rule.cc
index 68ec7f5..6942fb5 100644
--- a/rule.cc
+++ b/rule.cc
@@ -54,7 +54,7 @@ Rule::Rule()
}
void ParseRule(Loc& loc, StringPiece line, char term,
- function<string()> after_term_fn,
+ const function<string()> &after_term_fn,
Rule** out_rule, RuleVarAssignment* rule_var) {
size_t index = line.find(':');
if (index == string::npos) {