aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@digia.com>2015-03-17 09:52:26 +0100
committerErik Verbruggen <erik.verbruggen@theqtcompany.com>2015-03-17 11:32:15 +0000
commita04c3d710024d67d6c9c5ce3d2d2ccd5d2af0490 (patch)
tree4f6d0de35b742ac37a5095a34164fefef4df4bad
parentfb0cb17cb55c9ed44b7fcbc92efcc244e96c9b36 (diff)
Tests: initialize pointer class member field.
'cause valgrind complained. Change-Id: I9f18b3c8adaab8a893b8f6d685b19b2d042ccef7 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
-rw-r--r--tests/auto/qml/qqmlitemmodels/testtypes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlitemmodels/testtypes.h b/tests/auto/qml/qqmlitemmodels/testtypes.h
index 5345609cd3..986db54912 100644
--- a/tests/auto/qml/qqmlitemmodels/testtypes.h
+++ b/tests/auto/qml/qqmlitemmodels/testtypes.h
@@ -47,6 +47,10 @@ class ItemModelsTest : public QObject
Q_PROPERTY(QPersistentModelIndex persistentModelIndex READ persistentModelIndex WRITE setPersistentModelIndex NOTIFY changed)
public:
+ ItemModelsTest()
+ : m_model(0)
+ {}
+
QModelIndex modelIndex() const
{
return m_modelIndex;