From 68638efa29e610a66ce9b6017343b513d2c7c4cc Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 20 Dec 2016 15:05:05 +0100 Subject: [PATCH] Windows QPA: Initialize all members of QWindowsMouseHandler Amends change 9ef93fa153e9093f7b1b9c901192dcf8282b6c3d. Change-Id: I74dd4cb81e2830552d465a5e855c08fe798617f1 Reviewed-by: Oliver Wolff --- src/plugins/platforms/windows/qwindowsmousehandler.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/platforms/windows/qwindowsmousehandler.h b/src/plugins/platforms/windows/qwindowsmousehandler.h index bd36d9f44c..86f18a0482 100644 --- a/src/plugins/platforms/windows/qwindowsmousehandler.h +++ b/src/plugins/platforms/windows/qwindowsmousehandler.h @@ -88,9 +88,9 @@ private: QPointer m_trackedWindow; QHash m_touchInputIDToTouchPointID; QHash m_lastTouchPositions; - QTouchDevice *m_touchDevice; - bool m_leftButtonDown; - QWindow *m_previousCaptureWindow; + QTouchDevice *m_touchDevice = nullptr; + bool m_leftButtonDown = false; + QWindow *m_previousCaptureWindow = nullptr; }; Qt::MouseButtons QWindowsMouseHandler::keyStateToMouseButtons(int wParam)