Fix autotest-exported class from QtQuick.
authorThiago Macieira <thiago.macieira@intel.com>
Tue, 2 Apr 2013 05:45:28 +0000 (22:45 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 4 Apr 2013 19:08:11 +0000 (21:08 +0200)
Each class with a virtual table should have at least one non-inline
member. Especially if it's exported (there's no point in exporting it
otherwise).

Change-Id: I6b2821faa9662c6e8b65ce9ced53332e1a18e8d9
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/quick/util/qquickanimation.cpp
src/quick/util/qquickanimation_p_p.h

index 8bbd3a7..f74ad20 100644 (file)
@@ -2565,4 +2565,9 @@ QAbstractAnimationJob* QQuickPropertyAnimation::transition(QQuickStateActions &a
     return initInstance(animator);
 }
 
+QQuickAnimationPropertyUpdater::~QQuickAnimationPropertyUpdater()
+{
+    if (wasDeleted) *wasDeleted = true;
+}
+
 QT_END_NAMESPACE
index eb36a70..fb5f2d3 100644 (file)
@@ -303,7 +303,7 @@ class Q_AUTOTEST_EXPORT QQuickAnimationPropertyUpdater : public QQuickBulkValueU
 {
 public:
     QQuickAnimationPropertyUpdater() : interpolatorType(0), interpolator(0), prevInterpolatorType(0), reverse(false), fromSourced(false), fromDefined(false), wasDeleted(0) {}
-    ~QQuickAnimationPropertyUpdater() { if (wasDeleted) *wasDeleted = true; }
+    ~QQuickAnimationPropertyUpdater();
 
     void setValue(qreal v);