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/cc/compile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'build2/cc/compile') diff --git a/build2/cc/compile b/build2/cc/compile index 11b3919..b6fc7d6 100644 --- a/build2/cc/compile +++ b/build2/cc/compile @@ -40,10 +40,10 @@ namespace build2 private: void - append_lib_options (scope&, cstrings&, target&, lorder) const; + append_lib_options (const scope&, cstrings&, target&, lorder) const; void - hash_lib_options (scope&, sha256&, target&, lorder) const; + hash_lib_options (const scope&, sha256&, target&, lorder) const; // Mapping of include prefixes (e.g., foo in ) for auto- // generated headers to directories where they will be generated. @@ -61,15 +61,15 @@ namespace build2 append_prefixes (prefix_map&, target&, const variable&) const; void - append_lib_prefixes (scope&, prefix_map&, target&, lorder) const; + append_lib_prefixes (const scope&, prefix_map&, target&, lorder) const; prefix_map - build_prefix_map (scope&, target&, lorder) const; + build_prefix_map (const scope&, target&, lorder) const; // Reverse-lookup target type from extension. // const target_type* - map_extension (scope&, const string&, const string&) const; + map_extension (const scope&, const string&, const string&) const; // Header dependency injection. // -- cgit v1.1