diff options
author | Frank Meerkoetter <frank.meerkoetter@basyskom.com> | 2016-05-13 21:46:47 +0200 |
---|---|---|
committer | Frank Meerkoetter <frank.meerkoetter@basyskom.com> | 2016-05-14 04:46:12 +0000 |
commit | 35d8d4bc2bf84a2ea9744382a5a2eb7a51aaea3a (patch) | |
tree | 9457e67b3dba3ae6298a3df3fb198b38460ab268 /src/quick/util/qquicksmoothedanimation.cpp | |
parent | ec78cd1d22f943aa638749a8d3670e0138122c4a (diff) |
Do not initialize twice
Change-Id: If801f84b90fa1335a019751dc097568202aa4750
Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
Diffstat (limited to 'src/quick/util/qquicksmoothedanimation.cpp')
-rw-r--r-- | src/quick/util/qquicksmoothedanimation.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/quick/util/qquicksmoothedanimation.cpp b/src/quick/util/qquicksmoothedanimation.cpp index b7eadf5e30..d4956983fb 100644 --- a/src/quick/util/qquicksmoothedanimation.cpp +++ b/src/quick/util/qquicksmoothedanimation.cpp @@ -377,9 +377,8 @@ QQuickSmoothedAnimation::~QQuickSmoothedAnimation() } QQuickSmoothedAnimationPrivate::QQuickSmoothedAnimationPrivate() - : anim(0) + : anim(new QSmoothedAnimation) { - anim = new QSmoothedAnimation; } QQuickSmoothedAnimationPrivate::~QQuickSmoothedAnimationPrivate() |