Initialize in the right order
authorGunnar Sletta <gunnar.sletta@nokia.com>
Mon, 19 Sep 2011 08:32:48 +0000 (10:32 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 19 Sep 2011 10:06:13 +0000 (12:06 +0200)
Change-Id: I605c92bb43ea304cc812f85dc9937c161b2279f6
Reviewed-on: http://codereview.qt-project.org/5120
Reviewed-by: Matthew Cattell <matthew.cattell@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
src/testlib/qtesttouch.h

index 3d4a48c..8fe7fa8 100644 (file)
@@ -129,11 +129,11 @@ namespace QTest
 
     private:
         QTouchEventSequence(QWidget *widget, QTouchEvent::DeviceType aDeviceType)
-            : targetWidget(widget), deviceType(aDeviceType), targetWindow(0)
+            : targetWidget(widget), targetWindow(0), deviceType(aDeviceType)
         {
         }
         QTouchEventSequence(QWindow *window, QTouchEvent::DeviceType aDeviceType)
-            : targetWindow(window), deviceType(aDeviceType), targetWidget(0)
+            : targetWidget(0), targetWindow(window), deviceType(aDeviceType)
         {
         }
         QTouchEventSequence(const QTouchEventSequence &v);