aboutsummaryrefslogtreecommitdiff
path: root/build2/parser.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/parser.cxx
parent1dd17210b76d544a04fc6b4f3c98162ae9718102 (diff)
Pass const scope& where modification should not happen
Diffstat (limited to 'build2/parser.cxx')
-rw-r--r--build2/parser.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/build2/parser.cxx b/build2/parser.cxx
index 7f6b940..c48159a 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -3280,7 +3280,7 @@ namespace build2
lexer l (is, *path_, "\'\"\\$(", &paren_processor);
lexer_ = &l;
target_ = nullptr;
- scope_ = root_ = global_scope;
+ scope_ = root_ = scope::global_;
// Turn on the value mode/pairs recognition with '@' as the pair separator
// (e.g., src_root/@out_root/exe{foo bar}).