aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-14 15:16:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 08:29:23 +0200
commit79f3c8044bd48db4e7fa3fa385c9af1fa18a1a9b (patch)
tree5c6b98eba0821e117d5039e7241229aea7a0e1ff
parent2cccbe9150669f9df00f439b8db03054a97ed4bb (diff)
Minor fixes
-rw-r--r--build2/lexer.cxx2
-rw-r--r--build2/parser.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/build2/lexer.cxx b/build2/lexer.cxx
index 02271e9..8f09baf 100644
--- a/build2/lexer.cxx
+++ b/build2/lexer.cxx
@@ -444,7 +444,7 @@ namespace build2
if (m == lexer_mode::variable)
state_.pop ();
- return token (lexeme, sep, quoted, ln, cn, token_printer);
+ return token (move (lexeme), sep, quoted, ln, cn, token_printer);
}
diff --git a/build2/parser.cxx b/build2/parser.cxx
index c7ede35..a2d9d1b 100644
--- a/build2/parser.cxx
+++ b/build2/parser.cxx
@@ -1750,11 +1750,11 @@ namespace build2
// untyped one to the other's type instead of complaining. This
// seems like a reasonable thing to do and will allow us to write:
//
- // if (build.version > 30000)
+ // if ($build.version > 30000)
//
// Rather than having to write:
//
- // if (build.version > [uint64] 30000)
+ // if ($build.version > [uint64] 30000)
//
if (lhs.type != rhs.type)
{