From 088a60c512aff26eeb026c516d0afe724880cb2b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Apr 2015 10:47:28 +0200 Subject: Provide more convenient access to root scope --- build/dump.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build/dump.cxx') diff --git a/build/dump.cxx b/build/dump.cxx index 0287d4a..5ba7269 100644 --- a/build/dump.cxx +++ b/build/dump.cxx @@ -75,7 +75,7 @@ namespace build // Nested scopes of which we are a parent. // - for (auto e (scopes.end ()); i != e && i->second.parent () == &p; ) + for (auto e (scopes.end ()); i != e && i->second.parent_scope () == &p; ) { if (vb) { @@ -98,7 +98,7 @@ namespace build for (const auto& pt: targets) { const target& t (*pt); - const scope* ts (&scopes.find (t.dir)); + const scope* ts (&t.base_scope ()); bool f (false); -- cgit v1.1