From 6a8cfd6e52ad340c80b5a8b862b713192cecf791 Mon Sep 17 00:00:00 2001 From: Mike Krus Date: Tue, 28 May 2019 12:05:14 +0100 Subject: Clean up warnings Change-Id: I1ddad305359586481021e85f6e4a470d3a6521b0 Reviewed-by: Paul Lemire --- tests/auto/core/qentity/tst_qentity.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/auto/core/qentity/tst_qentity.cpp') diff --git a/tests/auto/core/qentity/tst_qentity.cpp b/tests/auto/core/qentity/tst_qentity.cpp index e27cd1fc9..ef520d7f2 100644 --- a/tests/auto/core/qentity/tst_qentity.cpp +++ b/tests/auto/core/qentity/tst_qentity.cpp @@ -71,7 +71,7 @@ class MyQComponent : public Qt3DCore::QComponent { Q_OBJECT public: - explicit MyQComponent(Qt3DCore::QNode *parent = 0) + explicit MyQComponent(Qt3DCore::QNode *parent = nullptr) : QComponent(parent) {} }; @@ -80,7 +80,7 @@ public: class MyEntity : public Qt3DCore::QEntity { public: - explicit MyEntity(Qt3DCore::QNode *parent = 0) + explicit MyEntity(Qt3DCore::QNode *parent = nullptr) : QEntity(parent) {} }; @@ -589,6 +589,8 @@ void tst_Entity::checkCloning_data() Qt3DCore::QEntity *grandChild = new MyEntity(entityWithNestedChildren); QVector childIds = {child->id(), grandChild->id()}; QTest::newRow("entityWithNestedChildren") << entityWithNestedChildren << childIds << 4; + + Q_UNUSED(dummy); } } -- cgit v1.2.3