From: Nico Weber Date: Wed, 18 Mar 2015 20:39:26 +0000 (-0400) Subject: Add a missing &. (No behavior change, only used in tests.) X-Git-Tag: v1.6.0^2~22^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc38ef76ebfabe503b1b56a1e32827a851037766;p=platform%2Fupstream%2Fninja.git Add a missing &. (No behavior change, only used in tests.) --- 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 BindingEnv::GetRules() const { +const map& 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 GetRules() const; + const map& GetRules() const; void AddBinding(const string& key, const string& val);