forked from OSchip/llvm-project
Fix -Wunused-lambda-capture warnings.
This commit is contained in:
parent
4e5d134da1
commit
2369560f4a
|
@ -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);
|
||||
});
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue