aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/windows-rpath.cxx
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/cc/windows-rpath.cxx
parent1dd17210b76d544a04fc6b4f3c98162ae9718102 (diff)
Pass const scope& where modification should not happen
Diffstat (limited to 'build2/cc/windows-rpath.cxx')
-rw-r--r--build2/cc/windows-rpath.cxx10
1 files changed, 6 insertions, 4 deletions
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)
{