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/test/rule.cxx | 2 +- build2/test/target.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/test') diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index 6b06dca..05d5eac 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -270,7 +270,7 @@ namespace build2 // Resolve them to targets, which normally would be existing files // but could also be targets that need updating. // - scope& bs (t.base_scope ()); + const scope& bs (t.base_scope ()); // @@ OUT: what if this is a @-qualified pair or names? // diff --git a/build2/test/target.cxx b/build2/test/target.cxx index 44f65aa..a5801e8 100644 --- a/build2/test/target.cxx +++ b/build2/test/target.cxx @@ -25,7 +25,7 @@ namespace build2 } static optional - testscript_target_extension (const target_key& tk, scope&, bool) + testscript_target_extension (const target_key& tk, const scope&, bool) { // If the name is special 'testscript', then there is no extension, // otherwise it is .test. -- cgit v1.1