QGuiApplication: remove a use of QMutableEventPoint

The 'persistentPoint' reference is never used as a QMutableEventPoint,
so don't cast to it (which is UB).

Pick-to: 6.3 6.2
Task-number: QTBUG-99615
Change-Id: I7fdfb2427a09d691242bf1fa28e202ba326ea678
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
bb10
Marc Mutz 2022-01-05 22:17:11 +01:00
parent f1e60de665
commit d2055fcee5
1 changed files with 1 additions and 1 deletions

View File

@ -2172,7 +2172,7 @@ void QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::Mo
QPointF localPoint = e->localPos;
bool doubleClick = false;
auto persistentEPD = devPriv->pointById(0);
const auto &persistentPoint = QMutableEventPoint::from(persistentEPD->eventPoint);
const auto &persistentPoint = persistentEPD->eventPoint;
if (mouseMove) {
QGuiApplicationPrivate::lastCursorPosition = globalPoint;