diff options
Diffstat (limited to 'tests/auto/core/qentity/tst_qentity.cpp')
-rw-r--r-- | tests/auto/core/qentity/tst_qentity.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/core/qentity/tst_qentity.cpp b/tests/auto/core/qentity/tst_qentity.cpp index d21ecd482..ae8323858 100644 --- a/tests/auto/core/qentity/tst_qentity.cpp +++ b/tests/auto/core/qentity/tst_qentity.cpp @@ -86,18 +86,18 @@ public: void tst_Entity::constructionDestruction() { // GIVEN - QEntity *entity = Q_NULLPTR; + QEntity *entity = nullptr; // WHEN entity = new QEntity; // THEN - QVERIFY(entity != Q_NULLPTR); + QVERIFY(entity != nullptr); delete entity; // GIVEN QScopedPointer<QEntity> entity2(new QEntity); // WHEN - entity2.reset(Q_NULLPTR); + entity2.reset(nullptr); // THEN // this should not crash } |