summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-09-28 13:07:38 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2010-09-28 13:08:13 (GMT)
commit59fc149ae0d43b3b5bb9e5695531d6f576598e2d (patch)
treec707a86afe960b7d096b34b929b47e8ccda68029 /tests
parent52c45eba97a929b6ea832512bf5d5b121e5fd453 (diff)
downloadQt-59fc149ae0d43b3b5bb9e5695531d6f576598e2d.zip
Qt-59fc149ae0d43b3b5bb9e5695531d6f576598e2d.tar.gz
Qt-59fc149ae0d43b3b5bb9e5695531d6f576598e2d.tar.bz2
tst_qstatemachine.cpp: fix compilation with Sun Studio
Task-number: QTBUG-12995
Diffstat (limited to 'tests')
-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 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()