summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2015-03-18 20:39:26 (GMT)
committerNico Weber <nicolasweber@gmx.de>2015-03-18 20:39:26 (GMT)
commitbc38ef76ebfabe503b1b56a1e32827a851037766 (patch)
tree64262419ca129e38ae5df67194505d1ed8e4aa7f /src
parentffa1beb78feee904acefce74a6bba2e4cc5416cb (diff)
downloadNinja-bc38ef76ebfabe503b1b56a1e32827a851037766.zip
Ninja-bc38ef76ebfabe503b1b56a1e32827a851037766.tar.gz
Ninja-bc38ef76ebfabe503b1b56a1e32827a851037766.tar.bz2
Add a missing &. (No behavior change, only used in tests.)
Diffstat (limited to 'src')
-rw-r--r--src/eval_env.cc2
-rw-r--r--src/eval_env.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/eval_env.cc b/src/eval_env.cc
index 8f5c8ee..e03a82e 100644
--- a/src/eval_env.cc
+++ b/src/eval_env.cc
@@ -74,7 +74,7 @@ bool Rule::IsReservedBinding(const string& var) {
var == "rspfile_content";
}
-const map<string, const Rule*> BindingEnv::GetRules() const {
+const map<string, const Rule*>& BindingEnv::GetRules() const {
return rules_;
}
diff --git a/src/eval_env.h b/src/eval_env.h
index 250fa55..28c4d16 100644
--- a/src/eval_env.h
+++ b/src/eval_env.h
@@ -84,7 +84,7 @@ struct BindingEnv : public Env {
void AddRule(const Rule* rule);
const Rule* LookupRule(const string& rule_name);
const Rule* LookupRuleCurrentScope(const string& rule_name);
- const map<string, const Rule*> GetRules() const;
+ const map<string, const Rule*>& GetRules() const;
void AddBinding(const string& key, const string& val);