summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-01-07 08:27:04 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-01-08 01:52:20 +0000
commit4b3273422a5eb773df2f4655a8fe9fd4541fc5d3 (patch)
tree59579fb54085f629aa0a2ed5adee948ed565674c /src
parentc109365cb50febd77fa8237940c6b729a04b0024 (diff)
QGuiApplication: remove an unneeded const_cast
QPointingDevicePrivate::pointById() already returns (mutable) EventPointData*, so the eventPoint member is mutable, too. Task-number: QTBUG-99615 Change-Id: Iae1e665cab4b83b63e0e693bf7c4689e99aa3bae Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> (cherry picked from commit d0bcbbebc3db44afbc2222566213cb1c9b2fe525) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qguiapplication.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp
index bad15cf1da..32e8fb5f72 100644
--- a/src/gui/kernel/qguiapplication.cpp
+++ b/src/gui/kernel/qguiapplication.cpp
@@ -2863,7 +2863,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: