diff options
author | Olivier Goffart <olivier.goffart@nokia.com> | 2010-09-28 13:07:38 (GMT) |
---|---|---|
committer | Olivier Goffart <olivier.goffart@nokia.com> | 2010-09-28 13:08:13 (GMT) |
commit | 59fc149ae0d43b3b5bb9e5695531d6f576598e2d (patch) | |
tree | c707a86afe960b7d096b34b929b47e8ccda68029 | |
parent | 52c45eba97a929b6ea832512bf5d5b121e5fd453 (diff) | |
download | Qt-59fc149ae0d43b3b5bb9e5695531d6f576598e2d.zip Qt-59fc149ae0d43b3b5bb9e5695531d6f576598e2d.tar.gz Qt-59fc149ae0d43b3b5bb9e5695531d6f576598e2d.tar.bz2 |
tst_qstatemachine.cpp: fix compilation with Sun Studio
Task-number: QTBUG-12995
-rw-r--r-- | tests/auto/qstatemachine/tst_qstatemachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qstatemachine/tst_qstatemachine.cpp b/tests/auto/qstatemachine/tst_qstatemachine.cpp index 2bf76e7..f6aee88 100644 --- a/tests/auto/qstatemachine/tst_qstatemachine.cpp +++ b/tests/auto/qstatemachine/tst_qstatemachine.cpp @@ -1112,7 +1112,7 @@ void tst_QStateMachine::machineWithParent() QObject object; QStateMachine *machine = new QStateMachine(&object); QCOMPARE(machine->parent(), &object); - QCOMPARE(machine->parentState(), (QObject*)0); + QCOMPARE(machine->parentState(), static_cast<QState*>(0)); } void tst_QStateMachine::addAndRemoveState() |