From f132fde07d0d852f2aa61dbc80d5d5f89ae5dcfa Mon Sep 17 00:00:00 2001 From: Michael Brasser Date: Thu, 6 Aug 2009 13:26:13 +1000 Subject: Don't init Number/Color animations twice. --- src/declarative/util/qmlanimation.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/declarative/util/qmlanimation.cpp b/src/declarative/util/qmlanimation.cpp index 27caf20..3240360 100644 --- a/src/declarative/util/qmlanimation.cpp +++ b/src/declarative/util/qmlanimation.cpp @@ -723,7 +723,6 @@ QmlColorAnimation::QmlColorAnimation(QObject *parent) : QmlPropertyAnimation(parent) { Q_D(QmlPropertyAnimation); - d->init(); d->interpolatorType = QMetaType::QColor; d->interpolator = QVariantAnimationPrivate::getInterpolator(d->interpolatorType); d->defaultToInterpolatorType = true; @@ -1199,7 +1198,6 @@ QmlNumberAnimation::QmlNumberAnimation(QObject *parent) : QmlPropertyAnimation(parent) { Q_D(QmlPropertyAnimation); - d->init(); d->interpolatorType = QMetaType::QReal; d->interpolator = QVariantAnimationPrivate::getInterpolator(d->interpolatorType); } -- cgit v0.12