aboutsummaryrefslogtreecommitdiff
path: root/build2/operation
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/operation
parent1dd17210b76d544a04fc6b4f3c98162ae9718102 (diff)
Pass const scope& where modification should not happen
Diffstat (limited to 'build2/operation')
-rw-r--r--build2/operation6
1 files changed, 3 insertions, 3 deletions
diff --git a/build2/operation b/build2/operation
index 22bb8a7..4af306d 100644
--- a/build2/operation
+++ b/build2/operation
@@ -173,7 +173,7 @@ namespace build2
// Normally a list of resolved and matched targets to execute. But
// can be something else, depending on the meta-operation.
//
- typedef vector<void*> action_targets;
+ typedef vector<void*> action_targets; //@@ MT TMP: make const void*
struct meta_operation_info
{
@@ -204,7 +204,7 @@ namespace build2
const dir_path& src_base,
const location&);
- void (*search) (scope& root,
+ void (*search) (const scope& root,
const target_key&,
const location&,
action_targets&);
@@ -239,7 +239,7 @@ namespace build2
// that does just that and adds a pointer to the target to the list.
//
void
- search (scope&, const target_key&, const location&, action_targets&);
+ search (const scope&, const target_key&, const location&, action_targets&);
void
match (action, action_targets&);