Skip to content

Commit a743057

Browse files
committed
pathmatch.cpp: fixed -Wdeprecated-this-capture Clang C++20 warning [skip ci]
1 parent 2d0326d commit a743057

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pathmatch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ PathMatch::PathMatch(std::vector<std::string> patterns, std::string basepath, Sy
3333

3434
bool PathMatch::match(const std::string &path, Filemode mode) const
3535
{
36-
return std::any_of(mPatterns.cbegin(), mPatterns.cend(), [=] (const std::string &pattern) {
36+
return std::any_of(mPatterns.cbegin(), mPatterns.cend(), [&] (const std::string &pattern) {
3737
return match(pattern, path, mBasepath, mode, mSyntax);
3838
});
3939
}

0 commit comments

Comments
 (0)