diff options
author | Paul Lemire <paul.lemire@kdab.com> | 2016-02-22 19:50:43 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-02-22 21:17:46 +0000 |
commit | 082c247cf859a145847ffe440b2e16994e0bf71a (patch) | |
tree | 62ff9f17505c9ec7e63b9d1dae9e58016319344d /tests | |
parent | 324ed1663a125cc46376d34e6374caea428debe6 (diff) |
QAspectEngine::setRootEntity takes a QSharedPointer
Change-Id: Ia1cb3f216a4a828890ac53d5a025ca0dd970dc85
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/core/qaspectengine/tst_qaspectengine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/core/qaspectengine/tst_qaspectengine.cpp b/tests/auto/core/qaspectengine/tst_qaspectengine.cpp index 2defb8a74..1bf10e68f 100644 --- a/tests/auto/core/qaspectengine/tst_qaspectengine.cpp +++ b/tests/auto/core/qaspectengine/tst_qaspectengine.cpp @@ -97,7 +97,7 @@ private Q_SLOTS: QEntity *e = new QEntity; e->setObjectName("root"); - engine->setRootEntity(e); + engine->setRootEntity(QEntityPtr(e)); QSharedPointer<QEntity> root = engine->rootEntity(); QVERIFY(root == e); @@ -122,7 +122,7 @@ private Q_SLOTS: QAspectEngine engine; // WHEN - engine.setRootEntity(root); + engine.setRootEntity(QEntityPtr(root)); // THEN // Nothing particular happen on exit, especially no crash |