summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandtouch.cpp
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2020-01-02 14:46:47 +0100
committerPaul Olav Tvete <paul.tvete@qt.io>2020-01-08 12:12:44 +0100
commit3b6216927bc0116512b1818b6642ae3361e2455c (patch)
tree1c2250ff6de2ba985f0321b2ebdb7dec7216a50c /src/client/qwaylandtouch.cpp
parent41416a2a88aa03a38c05d31ebce87d8644107389 (diff)
Fix compiler warnings
Change-Id: Ie0bed19704bed89044d3cf25e7aaa1f740a4b39a Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'src/client/qwaylandtouch.cpp')
-rw-r--r--src/client/qwaylandtouch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/qwaylandtouch.cpp b/src/client/qwaylandtouch.cpp
index 0394aef31..b79f5cf5b 100644
--- a/src/client/qwaylandtouch.cpp
+++ b/src/client/qwaylandtouch.cpp
@@ -165,7 +165,7 @@ void QWaylandTouchExtension::sendTouchEvent()
QWindowSystemInterface::handleTouchEvent(mTargetWindow, mTimestamp, mTouchDevice, mTouchPoints);
- Qt::TouchPointStates states = 0;
+ Qt::TouchPointStates states = {};
for (int i = 0; i < mTouchPoints.count(); ++i)
states |= mTouchPoints.at(i).state;