From 20aeff20eabbfaaa613f614835d479c2670a81ea Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 19 Nov 2021 11:09:29 +0200 Subject: [PATCH] Fix build idOffset is a static const variable, it doesn't need to be captured. --- src/libkwineffects/kwineffectquickview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libkwineffects/kwineffectquickview.cpp b/src/libkwineffects/kwineffectquickview.cpp index 1a7af5e270..aa733b0a4f 100644 --- a/src/libkwineffects/kwineffectquickview.cpp +++ b/src/libkwineffects/kwineffectquickview.cpp @@ -460,7 +460,7 @@ void EffectQuickView::Private::updateTouchState(Qt::TouchPointState state, qint3 // Find the touch point that has changed. This is separate from the above // loop because removing the released touch points invalidates iterators. - auto changed = std::find_if(touchPoints.begin(), touchPoints.end(), [id, idOffset](const QTouchEvent::TouchPoint &point) { + auto changed = std::find_if(touchPoints.begin(), touchPoints.end(), [id](const QTouchEvent::TouchPoint &point) { return point.id() == id + idOffset; });