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/operation.cxx | |
parent | 1dd17210b76d544a04fc6b4f3c98162ae9718102 (diff) |
Pass const scope& where modification should not happen
Diffstat (limited to 'build2/operation.cxx')
-rw-r--r-- | build2/operation.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/operation.cxx b/build2/operation.cxx index 6e8511d..4e65783 100644 --- a/build2/operation.cxx +++ b/build2/operation.cxx @@ -58,7 +58,7 @@ namespace build2 // Create the base scope. Note that its existence doesn't mean it was // already setup as a base scope; it can be the same as root. // - auto i (scopes.insert (out_base, false)); + auto i (scopes.rw (root).insert (out_base, false)); scope& base (setup_base (i, out_base, src_base)); // Load the buildfile unless it has already been loaded. @@ -67,7 +67,7 @@ namespace build2 } void - search (scope&, + search (const scope&, const target_key& tk, const location& l, action_targets& ts) |