diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-01 16:36:24 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-13 12:42:41 +0200 |
commit | e3e597180487328a54721e2afb95e33ed853d586 (patch) | |
tree | 89d59f482d41eb37a90f97b0dd55c2e878e4800b /build2/prerequisite | |
parent | 1dd17210b76d544a04fc6b4f3c98162ae9718102 (diff) |
Pass const scope& where modification should not happen
Diffstat (limited to 'build2/prerequisite')
-rw-r--r-- | build2/prerequisite | 6 |
1 files changed, 3 insertions, 3 deletions
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<string>& 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<string> nullproj; @@ -69,7 +69,7 @@ namespace build2 const dir_path out; // Empty, normalized absolute, or relative. const string name; const optional<string> 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<string> e, - scope_type& s) + const scope_type& s) : proj (move (p)), type (t), dir (move (d)), |