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/file.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/file.cxx') 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); -- cgit v1.1