Fix build

idOffset is a static const variable, it doesn't need to be captured.
This commit is contained in:
Vlad Zahorodnii 2021-11-19 11:09:29 +02:00
parent 310ef5e1c2
commit 20aeff20ea

View file

@ -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;
});