diff options
author | Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> | 2014-11-06 11:36:23 +0200 |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@theqtcompany.com> | 2014-11-06 11:46:26 +0200 |
commit | b6bf8a4b70091f836a20f4848d3dc00e82bafe3c (patch) | |
tree | 7f40572605816fb28bea19009a264ce0f1d58faa /tests/auto/cpptest/q3dsurface-heightproxy | |
parent | 46ef32d424d7e0209e52528286e31f656c654289 (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/q3dsurface-heightproxy')
-rw-r--r-- | tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp b/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp index 20ed1aeb..88faec4b 100644 --- a/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp +++ b/tests/auto/cpptest/q3dsurface-heightproxy/tst_proxy.cpp @@ -66,7 +66,9 @@ void tst_proxy::construct() QVERIFY(proxy); delete proxy; - proxy = new QHeightMapSurfaceDataProxy(QImage(QSize(10, 10), QImage::Format_ARGB32)); + QImage image(QSize(10, 10), QImage::Format_ARGB32); + image.fill(0); + proxy = new QHeightMapSurfaceDataProxy(image); QVERIFY(proxy); QCoreApplication::processEvents(); QCOMPARE(proxy->columnCount(), 10); |