aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Edmundson <davidedmundson@kde.org>2020-01-08 17:12:17 +0000
committerDavid Edmundson <davidedmundson@kde.org>2020-01-21 13:07:03 +0000
commit5e1cbbe0b9f68c441a3cb1b22594b88763075f4e (patch)
treec5dee926eb5c54e6a4df69d43681b2f8a19ba339
parentd2e589fab2b59995c622eda1e0d95c46b265dea0 (diff)
Initialize boolean m_hasItemChangeListeners
Found by a valgrind warning of an unintialized jump. Change-Id: I24279c97042e1971eaff35c3363fc1250e5c6c6e Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
-rw-r--r--src/imports/layouts/qquicklayout_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imports/layouts/qquicklayout_p.h b/src/imports/layouts/qquicklayout_p.h
index b31bffa290..3f076c7304 100644
--- a/src/imports/layouts/qquicklayout_p.h
+++ b/src/imports/layouts/qquicklayout_p.h
@@ -131,7 +131,7 @@ class QQuickLayoutPrivate : public QQuickItemPrivate
{
Q_DECLARE_PUBLIC(QQuickLayout)
public:
- QQuickLayoutPrivate() : m_isReady(false), m_disableRearrange(true) {}
+ QQuickLayoutPrivate() : m_isReady(false), m_disableRearrange(true), m_hasItemChangeListeners(false) {}
protected:
unsigned m_isReady : 1;