diff options
author | Aleix Pol <aleixpol@kde.org> | 2016-04-18 18:08:28 +0200 |
---|---|---|
committer | Aleix Pol <aleixpol@codereview.qt-project.org> | 2016-04-19 15:41:12 +0000 |
commit | fc22938dfc7b4c09f76913ac62e1f8ba345eccaf (patch) | |
tree | 42b2a60a47bdb6d23fa42a888f489116acbc63d8 /src/quick/util/qquickpath_p.h | |
parent | 33a40e23bd7dac4a90c25e8814c9d744add23c4c (diff) |
Make sure QQuickPathPercent::value is initialized
Change-Id: I2704b417085a7956e73daed191011af594703aa9
Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
Diffstat (limited to 'src/quick/util/qquickpath_p.h')
-rw-r--r-- | src/quick/util/qquickpath_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/util/qquickpath_p.h b/src/quick/util/qquickpath_p.h index b39b6e5c01..c9a416d75a 100644 --- a/src/quick/util/qquickpath_p.h +++ b/src/quick/util/qquickpath_p.h @@ -329,7 +329,7 @@ class Q_AUTOTEST_EXPORT QQuickPathPercent : public QQuickPathElement Q_OBJECT Q_PROPERTY(qreal value READ value WRITE setValue NOTIFY valueChanged) public: - QQuickPathPercent(QObject *parent=0) : QQuickPathElement(parent) {} + QQuickPathPercent(QObject *parent=0) : QQuickPathElement(parent), _value(0) {} qreal value() const; void setValue(qreal value); |