summaryrefslogtreecommitdiffstats
path: root/tests/auto/core/nodes/tst_nodes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/core/nodes/tst_nodes.cpp')
-rw-r--r--tests/auto/core/nodes/tst_nodes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/core/nodes/tst_nodes.cpp b/tests/auto/core/nodes/tst_nodes.cpp
index fcc38797e..1edaf42ce 100644
--- a/tests/auto/core/nodes/tst_nodes.cpp
+++ b/tests/auto/core/nodes/tst_nodes.cpp
@@ -1117,10 +1117,10 @@ void tst_Nodes::removingMultipleChildNodesFromNode()
QVERIFY(Qt3DCore::QNodePrivate::get(root.data())->scene() != nullptr);
// WHEN
- Qt3DCore::QNodeIdVector childIds(10);
+ Qt3DCore::QNodeIdVector childIds;
for (int i = 0; i < 10; i++) {
auto child = new MyQNode(root.data());
- childIds[i] = child->id();
+ childIds.push_back(child->id());
}
QCoreApplication::processEvents();