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/prerequisite | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/prerequisite') diff --git a/build2/prerequisite b/build2/prerequisite index abfb2c1..a6d3632 100644 --- a/build2/prerequisite +++ b/build2/prerequisite @@ -33,7 +33,7 @@ namespace build2 const optional& proj; target_key tk; // The .dir and .out members can be relative. - scope_type* scope; // Can be NULL if tk.dir is absolute. + const scope_type* scope; // Can be NULL if tk.dir is absolute. static const optional nullproj; @@ -69,7 +69,7 @@ namespace build2 const dir_path out; // Empty, normalized absolute, or relative. const string name; const optional ext; // Absent if unspecified. - scope_type& scope; + const scope_type& scope; target_type* target; // NULL if not yet resolved. Note that this // should always be the "primary target", not @@ -82,7 +82,7 @@ namespace build2 dir_path o, string n, optional e, - scope_type& s) + const scope_type& s) : proj (move (p)), type (t), dir (move (d)), -- cgit v1.1