diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-10-12 14:51:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-04 08:05:07 +0200 |
commit | 8d2e541ab1aa24140eb680fb046e49a4a3f0bbd2 (patch) | |
tree | 57401f85aeaa2e3d53534bcb9df007dffafccbac /build2/scope | |
parent | 04e382b0af66057f19c6dce66c43316cbd3cb23c (diff) |
Various design/implementation cleanups
Diffstat (limited to 'build2/scope')
-rw-r--r-- | build2/scope | 8 |
1 files changed, 4 insertions, 4 deletions
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<lookup, size_t> @@ -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. // |