From 19af3f6b0873a92582e4787a87a6f14df53ff6ae Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 10 Oct 2022 18:22:31 +0200 Subject: Preparatory work for public/private variable distinction We still always use the public var_pool from context but where required, all access now goes through scope::var_pool(). --- libbuild2/parser.cxx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'libbuild2/parser.cxx') diff --git a/libbuild2/parser.cxx b/libbuild2/parser.cxx index 1cffb85..ec33d6e 100644 --- a/libbuild2/parser.cxx +++ b/libbuild2/parser.cxx @@ -4952,11 +4952,10 @@ namespace build2 // attributes). if (type || vis || ovr) - ctx->var_pool.update (const_cast (var), - type, - vis ? &*vis : nullptr, - ovr ? &*ovr : nullptr); - + var.owner->update (const_cast (var), + type, + vis ? &*vis : nullptr, + ovr ? &*ovr : nullptr); } void parser:: -- cgit v1.1