From fca618cb287a312a1159ce785947f19db4bc5fba Mon Sep 17 00:00:00 2001 From: Jason McDonald Date: Wed, 6 Apr 2011 11:37:01 +1000 Subject: Prefer QCOMPARE to QVERIFY for comparisons. Reviewed-by: Rohan McGovern --- tests/auto/qpointer/tst_qpointer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/auto/qpointer/tst_qpointer.cpp b/tests/auto/qpointer/tst_qpointer.cpp index 7bc5fb6..9f2c0da 100644 --- a/tests/auto/qpointer/tst_qpointer.cpp +++ b/tests/auto/qpointer/tst_qpointer.cpp @@ -185,13 +185,13 @@ void tst_QPointer::dereference_operators() QPointer p1 = this; QObject *object = p1->me(); - QVERIFY(object == this); + QCOMPARE(object, this); QObject &ref = *p1; - QVERIFY(&ref == this); + QCOMPARE(&ref, this); object = static_cast(p1); - QVERIFY(object == this); + QCOMPARE(object, this); } void tst_QPointer::disconnect() -- cgit v0.12