summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSean Harmer <sean.harmer@kdab.com>2014-10-04 09:18:19 +0100
committerSean Harmer <sean.harmer@kdab.com>2014-10-04 13:02:47 +0200
commit36a4fbb0adf9162086d1c67dd48a2bfc54de9a10 (patch)
treed6b4baf68f8aaf4c7645a92d9902c77afac38b20 /tests
parentc44a7e5a352ef4af6edaac3db604ef6017edf909 (diff)
Silence warnings in QNode unit test
Change-Id: I903493cc3399b6680ac5947f1c81033a1f1c745c Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/core/nodes/tst_nodes.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/core/nodes/tst_nodes.cpp b/tests/auto/core/nodes/tst_nodes.cpp
index 341caedf0..7e379aac6 100644
--- a/tests/auto/core/nodes/tst_nodes.cpp
+++ b/tests/auto/core/nodes/tst_nodes.cpp
@@ -159,7 +159,7 @@ void tst_Nodes::appendChildNodesToNode()
for (int i = 0; i < 10; i++) {
QVERIFY(child->parent() == parent);
QVERIFY(child->parentNode() == parent);
- Qt3D::QNode *n = new MyQNode(child);
+ (void) new MyQNode(child);
parent = child;
child = qobject_cast<Qt3D::QNode *>(child->children().first());
}
@@ -188,7 +188,7 @@ void tst_Nodes::removingChildNodesFromNode()
QVERIFY(child->parent() == Q_NULLPTR);
for (int i = 0; i < 10; i++) {
- Qt3D::QNode *n = new MyQNode(root);
+ (void) new MyQNode(root);
}
QVERIFY(root->children().count() == 10);
Q_FOREACH (QObject *c, root->children())
@@ -197,7 +197,7 @@ void tst_Nodes::removingChildNodesFromNode()
Qt3D::QNode *firstChild = child;
for (int i = 0; i < 10; i++) {
- Qt3D::QNode *m = new MyQNode(child);
+ (void) new MyQNode(child);
child = qobject_cast<Qt3D::QNode *>(child->children().first());
}
QVERIFY(root->children().count() == 0);