diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2017-07-21 12:01:15 +0200 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2017-07-22 10:20:12 +0000 |
commit | 2a0327d15d9c3fe2201bb47f0117b8385d86fd67 (patch) | |
tree | 90281c866191337c344a49afcde93cde70e621ec /tests/auto/render/texture | |
parent | 008b3906bd28b235e3f0fb6a7429513df7b9cdc0 (diff) |
Use QSharedPointer::create() more
This is the result of running the (experimental) clang-tidy check
qt-modernize-qsharedpointer-create
Discarded changes: none.
Change-Id: Ic6368521ebf5841267ffe7917cc652627f7b26a7
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'tests/auto/render/texture')
-rw-r--r-- | tests/auto/render/texture/tst_texture.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/auto/render/texture/tst_texture.cpp b/tests/auto/render/texture/tst_texture.cpp index 361cd3117..9a84714a6 100644 --- a/tests/auto/render/texture/tst_texture.cpp +++ b/tests/auto/render/texture/tst_texture.cpp @@ -225,7 +225,7 @@ void tst_RenderTexture::checkPropertyChanges() QCOMPARE(backend.properties().width, 256); // WHEN - updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId())); + updateChange = QSharedPointer<Qt3DCore::QPropertyUpdatedChange>::create(Qt3DCore::QNodeId()); updateChange->setValue(128); updateChange->setPropertyName("height"); backend.sceneChangeEvent(updateChange); @@ -234,7 +234,7 @@ void tst_RenderTexture::checkPropertyChanges() QCOMPARE(backend.properties().height, 128); // WHEN - updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId())); + updateChange = QSharedPointer<Qt3DCore::QPropertyUpdatedChange>::create(Qt3DCore::QNodeId()); updateChange->setValue(16); updateChange->setPropertyName("depth"); backend.sceneChangeEvent(updateChange); @@ -243,7 +243,7 @@ void tst_RenderTexture::checkPropertyChanges() QCOMPARE(backend.properties().depth, 16); // WHEN - updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId())); + updateChange = QSharedPointer<Qt3DCore::QPropertyUpdatedChange>::create(Qt3DCore::QNodeId()); updateChange->setValue(32); updateChange->setPropertyName("layers"); backend.sceneChangeEvent(updateChange); @@ -252,7 +252,7 @@ void tst_RenderTexture::checkPropertyChanges() QCOMPARE(backend.properties().layers, 32); // WHEN - updateChange.reset(new Qt3DCore::QPropertyUpdatedChange(Qt3DCore::QNodeId())); + updateChange = QSharedPointer<Qt3DCore::QPropertyUpdatedChange>::create(Qt3DCore::QNodeId()); updateChange->setValue(64); updateChange->setPropertyName("samples"); backend.sceneChangeEvent(updateChange); |