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/file.cxx | |
parent | 04e382b0af66057f19c6dce66c43316cbd3cb23c (diff) |
Various design/implementation cleanups
Diffstat (limited to 'build2/file.cxx')
-rw-r--r-- | build2/file.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/file.cxx b/build2/file.cxx index eaf503d..7e94e03 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -290,7 +290,7 @@ namespace build2 return make_pair (value (), false); } - const variable& var (var_pool.find (move (t.value))); + const variable& var (var_pool[t.value]); parser p; temp_scope tmp (*global_scope); @@ -559,7 +559,7 @@ namespace build2 // NULL value indicates that we found no subprojects. // { - const variable& var (var_pool.find ("subprojects")); + const variable& var (var_pool["subprojects"]); auto rp (root.vars.insert (var)); // Set NULL by default. value& v (rp.first); |