summaryrefslogtreecommitdiffstats
path: root/tests/auto/cpptest/q3dscene/tst_scene.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2014-11-06 11:36:23 +0200
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2014-11-06 11:46:26 +0200
commitb6bf8a4b70091f836a20f4848d3dc00e82bafe3c (patch)
tree7f40572605816fb28bea19009a264ce0f1d58faa /tests/auto/cpptest/q3dscene/tst_scene.cpp
parent46ef32d424d7e0209e52528286e31f656c654289 (diff)
Fixed Valgrind reported issues in cpp tests
Change-Id: I284832fc697e0ac6ef1ba1bb857892a10cbcd8fd Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
Diffstat (limited to 'tests/auto/cpptest/q3dscene/tst_scene.cpp')
-rw-r--r--tests/auto/cpptest/q3dscene/tst_scene.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/auto/cpptest/q3dscene/tst_scene.cpp b/tests/auto/cpptest/q3dscene/tst_scene.cpp
index 83eff9eb..bddd40d2 100644
--- a/tests/auto/cpptest/q3dscene/tst_scene.cpp
+++ b/tests/auto/cpptest/q3dscene/tst_scene.cpp
@@ -127,12 +127,12 @@ void tst_scene::invalidProperties()
void tst_scene::subViews()
{
- Q3DBars *graph = new Q3DBars();
- graph->setPosition(QPoint(0, 0));
- graph->setWidth(200);
- graph->setHeight(200);
+ Q3DBars graph;
+ graph.setPosition(QPoint(0, 0));
+ graph.setWidth(200);
+ graph.setHeight(200);
- Q3DScene *scene = graph->scene();
+ Q3DScene *scene = graph.scene();
QCoreApplication::processEvents();