diff options
Diffstat (limited to 'tests/auto/cpptest/q3dsurface/tst_surface.cpp')
-rw-r--r-- | tests/auto/cpptest/q3dsurface/tst_surface.cpp | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/tests/auto/cpptest/q3dsurface/tst_surface.cpp b/tests/auto/cpptest/q3dsurface/tst_surface.cpp index 0ae0a326..101195e0 100644 --- a/tests/auto/cpptest/q3dsurface/tst_surface.cpp +++ b/tests/auto/cpptest/q3dsurface/tst_surface.cpp @@ -2,17 +2,17 @@ ** ** Copyright (C) 2014 Digia Plc ** All rights reserved. -** For any questions to Digia, please use contact form at http://qt.digia.com +** For any questions to Digia, please use contact form at http://qt.io ** -** This file is part of the QtDataVisualization module. +** This file is part of the Qt Data Visualization module. ** -** Licensees holding valid Qt Enterprise licenses may use this file in -** accordance with the Qt Enterprise License Agreement provided with the -** Software or, alternatively, in accordance with the terms contained in -** a written agreement between you and Digia. +** Licensees holding valid commercial license for Qt may use this file in +** accordance with the Qt License Agreement provided with the Software +** or, alternatively, in accordance with the terms contained in a written +** agreement between you and Digia. ** ** If you have questions regarding the use of this file, please use -** contact form at http://qt.digia.com +** contact form at http://qt.io ** ****************************************************************************/ @@ -86,7 +86,8 @@ void tst_surface::construct() QVERIFY(graph); delete graph; - graph = new Q3DSurface(new QSurfaceFormat()); + QSurfaceFormat format; + graph = new Q3DSurface(&format); QVERIFY(graph); delete graph; } @@ -217,6 +218,8 @@ void tst_surface::removeSeries() m_graph->addSeries(series); m_graph->removeSeries(series); QCOMPARE(m_graph->seriesList().length(), 0); + + delete series; } void tst_surface::removeMultipleSeries() @@ -241,6 +244,10 @@ void tst_surface::removeMultipleSeries() m_graph->removeSeries(series3); QCOMPARE(m_graph->seriesList().length(), 0); + + delete series; + delete series2; + delete series3; } QTEST_MAIN(tst_surface) |