summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/text
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-22 09:02:02 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-23 09:32:37 +0200
commite356ab2c32248838f70fce38b35294a151a7e278 (patch)
tree896b4f19ddf2f9696127b073abf2dc8f6c159ac3 /tests/auto/gui/text
parent2516fc935cfa77bd42e9cededf7e8be8c0980e13 (diff)
Make QPointer comparisons hidden friends
Reduces ADL noise. Change-Id: Id0aa4b32b7bb6d70ed9106b949452d895d9060a9 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests/auto/gui/text')
-rw-r--r--tests/auto/gui/text/qtextcursor/tst_qtextcursor.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/gui/text/qtextcursor/tst_qtextcursor.cpp b/tests/auto/gui/text/qtextcursor/tst_qtextcursor.cpp
index 4defd0da27..52a17bd2ea 100644
--- a/tests/auto/gui/text/qtextcursor/tst_qtextcursor.cpp
+++ b/tests/auto/gui/text/qtextcursor/tst_qtextcursor.cpp
@@ -708,14 +708,14 @@ void tst_QTextCursor::checkFrame1()
{
QCOMPARE(cursor.position(), 0);
QPointer<QTextFrame> frame = cursor.insertFrame(QTextFrameFormat());
- QVERIFY(frame != 0);
+ QVERIFY(frame != nullptr);
QTextFrame *root = frame->parentFrame();
- QVERIFY(root != 0);
+ QVERIFY(root != nullptr);
QCOMPARE(frame->firstPosition(), 1);
QCOMPARE(frame->lastPosition(), 1);
- QVERIFY(frame->parentFrame() != 0);
+ QVERIFY(frame->parentFrame() != nullptr);
QCOMPARE(root->childFrames().size(), 1);
QCOMPARE(cursor.position(), 1);