Fix -Wunused-lambda-capture warnings.

This commit is contained in:
Eric Christopher 2019-12-26 15:27:21 -08:00
parent 4e5d134da1
commit 2369560f4a
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ namespace query {
// is found before End, return StringRef(). Begin is adjusted to exclude the
// lexed region.
StringRef QueryParser::lexWord() {
Line = Line.drop_while([this](char c) {
Line = Line.drop_while([](char c) {
// Don't trim newlines.
return StringRef(" \t\v\f\r").contains(c);
});

View File

@ -297,7 +297,7 @@ private:
/// Consume all leading whitespace from \c Code.
void consumeWhitespace() {
Code = Code.drop_while([this](char c) {
Code = Code.drop_while([](char c) {
// Don't trim newlines.
return StringRef(" \t\v\f\r").contains(c);
});