diff options
author | Erik Verbruggen <erik.verbruggen@digia.com> | 2015-03-13 14:56:56 +0100 |
---|---|---|
committer | Erik Verbruggen <erik.verbruggen@theqtcompany.com> | 2015-03-16 12:54:54 +0000 |
commit | cd4fbead3b7f166b1c14d282584b4213e214c35b (patch) | |
tree | cad7203ed47826b85515788f96e78cc53d380241 /tests/auto/corelib | |
parent | 642b80e9e9a4e6068fe440f00239c6e1bb3249b1 (diff) |
QStateMachine: fix warnings in test.
- removed an unused field
- initialized variable that might be used uninitialized.
Change-Id: I7a7a063f025ecc32fa462dd8d5e2485c2ba52eb8
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com>
Diffstat (limited to 'tests/auto/corelib')
-rw-r--r-- | tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp b/tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp index 1e195b364a..911668e534 100644 --- a/tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp +++ b/tests/auto/corelib/statemachine/qstatemachine/tst_qstatemachine.cpp @@ -1898,7 +1898,7 @@ class DelayedEventPosterThread : public QThread public: DelayedEventPosterThread(QStateMachine *machine, QObject *parent = 0) : QThread(parent), firstEventWasCancelled(false), - m_machine(machine), m_count(0) + m_machine(machine) { moveToThread(this); QObject::connect(m_machine, SIGNAL(started()), @@ -1919,7 +1919,6 @@ private Q_SLOTS: } private: QStateMachine *m_machine; - int m_count; }; void tst_QStateMachine::postDelayedEventFromThread() @@ -2744,7 +2743,7 @@ void tst_QStateMachine::eventTransitions() QState *s0 = new QState(&machine); QFinalState *s1 = new QFinalState(&machine); - QEventTransition *trans; + QEventTransition *trans = 0; if (x == 0) { trans = new QEventTransition(); QCOMPARE(trans->eventSource(), (QObject*)0); |