From ccb417a7c1456427b76914e8a11ca87b4926eeb3 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 28 Jan 2020 08:41:57 +0200 Subject: Use scope::var_pool() --- libbuild2/parser.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbuild2/parser.cxx') 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) { -- cgit v1.1