diff options
author | Jason McDonald <jason.mcdonald@nokia.com> | 2011-04-06 01:37:01 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2011-04-06 01:37:01 (GMT) |
commit | fca618cb287a312a1159ce785947f19db4bc5fba (patch) | |
tree | e6196fb1400c80c32bb2cb6b824f040dac6c1609 /tests | |
parent | 6260df3316cf7a3756fa8616f5e7f2561acabea1 (diff) | |
download | Qt-fca618cb287a312a1159ce785947f19db4bc5fba.zip Qt-fca618cb287a312a1159ce785947f19db4bc5fba.tar.gz Qt-fca618cb287a312a1159ce785947f19db4bc5fba.tar.bz2 |
Prefer QCOMPARE to QVERIFY for comparisons.
Reviewed-by: Rohan McGovern
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qpointer/tst_qpointer.cpp | 6 |
1 files 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<tst_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<QObject *>(p1); - QVERIFY(object == this); + QCOMPARE(object, this); } void tst_QPointer::disconnect() |