Fix build
idOffset is a static const variable, it doesn't need to be captured.
This commit is contained in:
parent
310ef5e1c2
commit
20aeff20ea
1 changed files with 1 additions and 1 deletions
|
@ -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
|
// Find the touch point that has changed. This is separate from the above
|
||||||
// loop because removing the released touch points invalidates iterators.
|
// 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;
|
return point.id() == id + idOffset;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue