From 59fc149ae0d43b3b5bb9e5695531d6f576598e2d Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 28 Sep 2010 15:07:38 +0200 Subject: tst_qstatemachine.cpp: fix compilation with Sun Studio Task-number: QTBUG-12995 --- tests/auto/qstatemachine/tst_qstatemachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(0)); } void tst_QStateMachine::addAndRemoveState() -- cgit v0.12