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/scope.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/scope.hxx') diff --git a/libbuild2/scope.hxx b/libbuild2/scope.hxx index ca21a17..dd2831c 100644 --- a/libbuild2/scope.hxx +++ b/libbuild2/scope.hxx @@ -169,7 +169,7 @@ namespace build2 value& assign (string name) { - return assign (ctx.var_pool.rw (*this).insert (move (name))); + return assign (var_pool ().insert (move (name))); } // Assign a typed non-overridable variable with normal visibility. @@ -178,7 +178,7 @@ namespace build2 value& assign (string name) { - return vars.assign (ctx.var_pool.rw (*this).insert (move (name))); + return vars.assign (var_pool ().insert (move (name))); } template -- cgit v1.1