From 8d2e541ab1aa24140eb680fb046e49a4a3f0bbd2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 12 Oct 2016 14:51:27 +0200 Subject: Various design/implementation cleanups --- build2/scope | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build2/scope') diff --git a/build2/scope b/build2/scope index 2efa899..154ee9d 100644 --- a/build2/scope +++ b/build2/scope @@ -96,7 +96,7 @@ namespace build2 lookup operator[] (const string& name) const { - return operator[] (var_pool.find (name)); + return operator[] (var_pool[name]); } // As above, but include target type/pattern-specific variables. @@ -110,7 +110,7 @@ namespace build2 lookup find (const string& var, const target_key& tk) const { - return find (var_pool.find (var), tk); + return find (var_pool[var], tk); } lookup @@ -122,7 +122,7 @@ namespace build2 lookup find (const string& var, const target_type& tt, const string& tn) const { - return find (var_pool.find (var), tt, tn); + return find (var_pool[var], tt, tn); } pair @@ -178,7 +178,7 @@ namespace build2 append (const variable&); value& - append (const string& name) {return append (var_pool.find (name));} + append (const string& name) {return append (var_pool[name]);} // Target type/pattern-specific variables. // -- cgit v1.1