aboutsummaryrefslogtreecommitdiff
path: root/build2/file.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/file.cxx')
-rw-r--r--build2/file.cxx4
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);