diff options
Diffstat (limited to 'tests/plugins')
-rw-r--r-- | tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp b/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp index cd988ae6..37d15d4a 100644 --- a/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp +++ b/tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp @@ -324,7 +324,7 @@ void QDeclarativePinchGenerator::timerEvent(QTimerEvent *event) Q_ASSERT(state_ == Replaying); // Create touchevent. May have one or two touchpoints. - QTouchEvent* touchEvent; + QTouchEvent* touchEvent = 0; switch (swipes_.at(masterSwipe_)->touchPoints.at(replayBookmark_).state()) { case (Qt::TouchPointPressed): touchEvent = new QTouchEvent(QEvent::TouchBegin,NULL,Qt::NoModifier,Qt::TouchPointReleased); @@ -337,7 +337,7 @@ void QDeclarativePinchGenerator::timerEvent(QTimerEvent *event) break; default: Q_ASSERT(false); - break; + return; } // Set touch points. Master swipe has touchpoints as it was chosen to have more touchpoints. // For the other swipe we need to check. |