diff options
Diffstat (limited to 'tests/auto/quick/qquickitem/tst_qquickitem.cpp')
-rw-r--r-- | tests/auto/quick/qquickitem/tst_qquickitem.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/quick/qquickitem/tst_qquickitem.cpp b/tests/auto/quick/qquickitem/tst_qquickitem.cpp index 61780fc405..7860f5677a 100644 --- a/tests/auto/quick/qquickitem/tst_qquickitem.cpp +++ b/tests/auto/quick/qquickitem/tst_qquickitem.cpp @@ -1986,7 +1986,7 @@ public slots: void tst_qquickitem::testSGInvalidate() { for (int i=0; i<2; ++i) { - QScopedPointer<QQuickView> view(new QQuickView()); + std::unique_ptr<QQuickView> view(new QQuickView()); InvalidatedItem *item = new InvalidatedItem(); @@ -2003,9 +2003,9 @@ void tst_qquickitem::testSGInvalidate() item->setParentItem(view->contentItem()); view->show(); - QVERIFY(QTest::qWaitForWindowExposed(view.data())); + QVERIFY(QTest::qWaitForWindowExposed(view.get())); - delete view.take(); + view.reset(); QCOMPARE(invalidateSpy.size(), expected); } } |