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/windows-rpath.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'build2/cc/windows-rpath.cxx') diff --git a/build2/cc/windows-rpath.cxx b/build2/cc/windows-rpath.cxx index 35d83cc..00911d4 100644 --- a/build2/cc/windows-rpath.cxx +++ b/build2/cc/windows-rpath.cxx @@ -46,7 +46,7 @@ namespace build2 // adding to the assembly or timestamp_nonexistent if there aren't any. // timestamp link:: - windows_rpath_timestamp (file& t, scope& bs, lorder lo) const + windows_rpath_timestamp (file& t, const scope& bs, lorder lo) const { timestamp r (timestamp_nonexistent); @@ -116,7 +116,9 @@ namespace build2 // duplicates). // auto link:: - windows_rpath_dlls (file& t, scope& bs, lorder lo) const -> windows_dlls + windows_rpath_dlls (file& t, + const scope& bs, + lorder lo) const -> windows_dlls { windows_dlls r; @@ -204,7 +206,7 @@ namespace build2 // void link:: windows_rpath_assembly (file& t, - scope& bs, + const scope& bs, lorder lo, const string& tcpu, timestamp ts, @@ -276,7 +278,7 @@ namespace build2 << " processorArchitecture='" << pa << "'\n" << " version='0.0.0.0'/>\n"; - scope& as (*t.root_scope ().weak_scope ()); // Amalgamation scope. + const scope& as (*t.root_scope ().weak_scope ()); // Amalgamation. auto link = [&as, &ad] (const path& f, const path& l) { -- cgit v1.1