diff options
author | Marc Mutz <marc.mutz@qt.io> | 2022-01-07 08:27:04 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2022-01-08 02:52:08 +0100 |
commit | d0bcbbebc3db44afbc2222566213cb1c9b2fe525 (patch) | |
tree | 4dd685c26b6fd507f8efd2f44ff98cff13e629c7 /src | |
parent | 6076c9fa137d0f0f8af42647463fb8123dec585a (diff) |
QGuiApplication: remove an unneeded const_cast
QPointingDevicePrivate::pointById() already returns (mutable)
EventPointData*, so the eventPoint member is mutable, too.
Task-number: QTBUG-99615
Pick-to: 6.3 6.2
Change-Id: Iae1e665cab4b83b63e0e693bf7c4689e99aa3bae
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 8af4a7110a..de1b8d725f 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -2851,7 +2851,7 @@ void QGuiApplicationPrivate::processTouchEvent(QWindowSystemInterfacePrivate::To for (auto &tempPt : e->points) { // update state auto epd = devPriv->pointById(tempPt.id()); - auto &mut = QMutableEventPoint::from(const_cast<QEventPoint &>(epd->eventPoint)); + auto &mut = QMutableEventPoint::from(epd->eventPoint); epd->eventPoint.setAccepted(false); switch (tempPt.state()) { case QEventPoint::State::Pressed: |