aboutsummaryrefslogtreecommitdiff
path: root/build2/install/rule.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-02-01 16:36:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:42:41 +0200
commite3e597180487328a54721e2afb95e33ed853d586 (patch)
tree89d59f482d41eb37a90f97b0dd55c2e878e4800b /build2/install/rule.cxx
parent1dd17210b76d544a04fc6b4f3c98162ae9718102 (diff)
Pass const scope& where modification should not happen
Diffstat (limited to 'build2/install/rule.cxx')
-rw-r--r--build2/install/rule.cxx7
1 files changed, 5 insertions, 2 deletions
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.
//