summaryrefslogtreecommitdiff
path: root/tests/plugins
diff options
context:
space:
mode:
authorDavid Laing <david.laing@nokia.com>2012-03-16 15:03:30 +1000
committerQt by Nokia <qt-info@nokia.com>2012-03-20 05:42:53 +0100
commitf3174fa642f2ccd2c0cad9604878abf2d158aec4 (patch)
tree316c7da5cbb3a6d8c19cb3941362cf7e13f23f9c /tests/plugins
parent908108424ad41425a257cfe2ad0d7c97f6822597 (diff)
downloadqtlocation-f3174fa642f2ccd2c0cad9604878abf2d158aec4.tar.gz
Coverity fixes, the sequel.
Change-Id: Icbe91d0f348e60a24599e2f93a719fafedf26708 Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
Diffstat (limited to 'tests/plugins')
-rw-r--r--tests/plugins/declarativetestplugin/qdeclarativepinchgenerator.cpp4
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.