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
parent
f1e60de665
commit
d2055fcee5
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue