aboutsummaryrefslogtreecommitdiff
path: root/build2/version
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-03-07 14:30:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-03-07 14:30:28 +0200
commit9400ddfc949025abddb04344624fba3945562d33 (patch)
treed67200faeaa9500f79117b46542b93ec745ef58d /build2/version
parent1845141809aa91b03718066a6f46863885a6a887 (diff)
Move bunch of root scope-only data members to root_extra
Diffstat (limited to 'build2/version')
-rw-r--r--build2/version/init.cxx2
-rw-r--r--build2/version/rule.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/build2/version/init.cxx b/build2/version/init.cxx
index 2c80cec..7e8f0ff 100644
--- a/build2/version/init.cxx
+++ b/build2/version/init.cxx
@@ -284,7 +284,7 @@ namespace build2
// If the dist module is used, set its dist.package and register the
// post-processing callback.
//
- if (auto* dm = rs.modules.lookup<dist::module> (dist::module::name))
+ if (auto* dm = rs.lookup_module<dist::module> (dist::module::name))
{
// Make sure dist is init'ed, not just boot'ed.
//
diff --git a/build2/version/rule.cxx b/build2/version/rule.cxx
index 1ff5b41..83f402f 100644
--- a/build2/version/rule.cxx
+++ b/build2/version/rule.cxx
@@ -80,7 +80,7 @@ namespace build2
// If we match, lookup and cache the module for the update operation.
//
if (r && a == perform_update_id)
- t.data (rs.modules.lookup<module> (module::name));
+ t.data (rs.lookup_module<module> (module::name));
return r;
}
@@ -314,7 +314,7 @@ namespace build2
const path& p (t.path ());
const scope& rs (t.root_scope ());
- const module& m (*rs.modules.lookup<module> (module::name));
+ const module& m (*rs.lookup_module<module> (module::name));
if (!m.rewritten)
return auto_rmfile (p, false /* active */);