summaryrefslogtreecommitdiffstats
path: root/tests/auto/qstatemachine
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-09-28 15:07:38 +0200
committerOlivier Goffart <olivier.goffart@nokia.com>2010-09-28 15:08:13 +0200
commit59fc149ae0d43b3b5bb9e5695531d6f576598e2d (patch)
treec707a86afe960b7d096b34b929b47e8ccda68029 /tests/auto/qstatemachine
parent52c45eba97a929b6ea832512bf5d5b121e5fd453 (diff)
tst_qstatemachine.cpp: fix compilation with Sun Studio
Task-number: QTBUG-12995
Diffstat (limited to 'tests/auto/qstatemachine')
-rw-r--r--tests/auto/qstatemachine/tst_qstatemachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qstatemachine/tst_qstatemachine.cpp b/tests/auto/qstatemachine/tst_qstatemachine.cpp
index 2bf76e7307..f6aee88dab 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()