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/operation | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/operation') 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 action_targets; + typedef vector 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&); -- cgit v1.1