diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-01-28 08:41:57 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-01-28 08:41:57 +0200 |
commit | ccb417a7c1456427b76914e8a11ca87b4926eeb3 (patch) | |
tree | d68803a1a1a013b1bb50f845459d0145c221eb79 /libbuild2/parser.cxx | |
parent | c0105aad0074aee0efb3ba41f8132496412f8790 (diff) |
Use scope::var_pool()
Diffstat (limited to 'libbuild2/parser.cxx')
-rw-r--r-- | libbuild2/parser.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index 2631845..65493bd 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -1714,7 +1714,7 @@ namespace build2 // Is this the 'foo=...' case? // size_t p (t.value.find ('=')); - auto& vp (ctx.var_pool.rw (*scope_)); + auto& vp (scope_->var_pool ()); if (p != string::npos) var = &vp.insert (split (p), true /* overridable */); @@ -2748,7 +2748,7 @@ namespace build2 //@@ TODO: append namespace if any. } - return ctx.var_pool.rw (*scope_).insert (move (n), true /* overridable */); + return scope_->var_pool ().insert (move (n), true /* overridable */); } void parser:: @@ -5739,7 +5739,7 @@ namespace build2 // Lookup. // - const auto& var (ctx.var_pool.rw (*scope_).insert (move (name), true)); + const variable& var (scope_->var_pool ().insert (move (name), true)); if (p != nullptr) { |