From a74305795f3f15d2d31ec5b8c3cc799edb985ed4 Mon Sep 17 00:00:00 2001 From: firewave Date: Mon, 8 Dec 2025 02:37:49 +0100 Subject: [PATCH 1/2] pathmatch.cpp: fixed `-Wdeprecated-this-capture` Clang C++20 warning [skip ci] --- lib/pathmatch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pathmatch.cpp b/lib/pathmatch.cpp index b7d78f048df..5dd11e1d755 100644 --- a/lib/pathmatch.cpp +++ b/lib/pathmatch.cpp @@ -33,7 +33,7 @@ PathMatch::PathMatch(std::vector patterns, std::string basepath, Sy bool PathMatch::match(const std::string &path, Filemode mode) const { - return std::any_of(mPatterns.cbegin(), mPatterns.cend(), [=] (const std::string &pattern) { + return std::any_of(mPatterns.cbegin(), mPatterns.cend(), [&] (const std::string &pattern) { return match(pattern, path, mBasepath, mode, mSyntax); }); } From cbf353ed443a55ef72348ec639647139a48ee5a2 Mon Sep 17 00:00:00 2001 From: firewave Date: Tue, 16 Dec 2025 15:41:24 +0100 Subject: [PATCH 2/2] s [skip ci] --- gui/resultstree.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index 12191b05cbd..0898fd78cfa 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -702,7 +702,7 @@ void ResultsTree::contextMenuEvent(QContextMenuEvent * e) { auto *action = new QAction(tr("No tag"), tagMenu); tagMenu->addAction(action); - connect(action, &QAction::triggered, [=]() { + connect(action, &QAction::triggered, [=, this]() { tagSelectedItems(QString()); }); } @@ -710,7 +710,7 @@ void ResultsTree::contextMenuEvent(QContextMenuEvent * e) for (const QString& tagstr : currentProject->getTags()) { auto *action = new QAction(tagstr, tagMenu); tagMenu->addAction(action); - connect(action, &QAction::triggered, [=]() { + connect(action, &QAction::triggered, [=, this]() { tagSelectedItems(tagstr); }); }