From e3e597180487328a54721e2afb95e33ed853d586 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 1 Feb 2017 16:36:24 +0200 Subject: Pass const scope& where modification should not happen --- build2/install/rule.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build2/install/rule.cxx') diff --git a/build2/install/rule.cxx b/build2/install/rule.cxx index 13c93a7..8c21dc1 100644 --- a/build2/install/rule.cxx +++ b/build2/install/rule.cxx @@ -278,7 +278,10 @@ namespace build2 // empty add it to install_dirs. Return the new last element. // static install_dir& - resolve_subdir (install_dirs& rs, target& t, scope& s, const lookup& l) + resolve_subdir (install_dirs& rs, + target& t, + const scope& s, + const lookup& l) { // Find the scope from which this value came and use as a base // to calculate the subdirectory. @@ -338,7 +341,7 @@ namespace build2 } install_dir* r (&rs.back ()); - scope& s (t.base_scope ()); + const scope& s (t.base_scope ()); // Override components in install_dir if we have our own. // -- cgit v1.1