aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/scope.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-01-28 08:41:57 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-01-28 08:41:57 +0200
commitccb417a7c1456427b76914e8a11ca87b4926eeb3 (patch)
treed68803a1a1a013b1bb50f845459d0145c221eb79 /libbuild2/scope.hxx
parentc0105aad0074aee0efb3ba41f8132496412f8790 (diff)
Use scope::var_pool()
Diffstat (limited to 'libbuild2/scope.hxx')
-rw-r--r--libbuild2/scope.hxx4
1 files changed, 2 insertions, 2 deletions
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<T> (move (name)));
+ return vars.assign (var_pool ().insert<T> (move (name)));
}
template <typename T>