Fixed missing virtual destructors in qtdeclarative.
authorSamuel Rødal <samuel.rodal@digia.com>
Sun, 23 Sep 2012 17:21:03 +0000 (19:21 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 24 Sep 2012 09:57:16 +0000 (11:57 +0200)
Change-Id: I0b0e63b572617a56874e27361479de2690644aa3
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
src/qml/animations/qabstractanimationjob.cpp
src/qml/animations/qabstractanimationjob_p.h
src/qml/qml/qqmlglobal.cpp
src/qml/qml/qqmlglobal_p.h
src/qml/qml/qqmltypeloader.cpp
src/qml/qml/qqmltypeloader_p.h
src/qml/qml/v4/qv4ir_p.h
src/quick/items/qquickvisualadaptormodel.cpp
src/quick/items/qquickvisualadaptormodel_p.h

index a12ab39..20b8b4b 100644 (file)
@@ -53,6 +53,10 @@ QT_BEGIN_NAMESPACE
 Q_GLOBAL_STATIC(QThreadStorage<QQmlAnimationTimer *>, animationTimer)
 #endif
 
+QAnimationJobChangeListener::~QAnimationJobChangeListener()
+{
+}
+
 QQmlAnimationTimer::QQmlAnimationTimer() :
     QAbstractAnimationTimer(), lastTick(0), lastDelta(0),
     currentAnimationIdx(0), insideTick(false),
index 1e932ae..12582a2 100644 (file)
@@ -166,9 +166,10 @@ protected:
     friend class QAnimationGroupJob;
 };
 
-class Q_AUTOTEST_EXPORT QAnimationJobChangeListener
+class Q_QML_PRIVATE_EXPORT QAnimationJobChangeListener
 {
 public:
+    virtual ~QAnimationJobChangeListener();
     virtual void animationFinished(QAbstractAnimationJob *) {}
     virtual void animationStateChanged(QAbstractAnimationJob *, QAbstractAnimationJob::State, QAbstractAnimationJob::State) {}
     virtual void animationCurrentLoopChanged(QAbstractAnimationJob *) {}
index 6d6def8..c9ab2fa 100644 (file)
@@ -52,6 +52,10 @@ QQmlValueTypeProvider::QQmlValueTypeProvider()
 {
 }
 
+QQmlValueTypeProvider::~QQmlValueTypeProvider()
+{
+}
+
 QQmlValueType *QQmlValueTypeProvider::createValueType(int type)
 {
     QQmlValueType *value = 0;
@@ -287,7 +291,7 @@ Q_AUTOTEST_EXPORT QQmlValueTypeProvider *QQml_valueTypeProvider(void)
     return *providerPtr;
 }
 
-
+QQmlColorProvider::~QQmlColorProvider() {}
 QVariant QQmlColorProvider::colorFromString(const QString &, bool *ok) { if (ok) *ok = false; return QVariant(); }
 unsigned QQmlColorProvider::rgbaFromString(const QString &, bool *ok) { if (ok) *ok = false; return 0; }
 QVariant QQmlColorProvider::fromRgbF(double, double, double, double) { return QVariant(); }
@@ -323,6 +327,7 @@ Q_AUTOTEST_EXPORT QQmlColorProvider *QQml_colorProvider(void)
 }
 
 
+QQmlGuiProvider::~QQmlGuiProvider() {}
 QObject *QQmlGuiProvider::application(QObject *) { return 0; }
 QStringList QQmlGuiProvider::fontFamilies() { return QStringList(); }
 bool QQmlGuiProvider::openUrlExternally(QUrl &) { return false; }
index 33e5d56..2777488 100644 (file)
@@ -224,6 +224,7 @@ class Q_QML_PRIVATE_EXPORT QQmlValueTypeProvider
 {
 public:
     QQmlValueTypeProvider();
+    virtual ~QQmlValueTypeProvider();
 
     QQmlValueType *createValueType(int);
 
@@ -276,6 +277,7 @@ Q_AUTOTEST_EXPORT QQmlValueTypeProvider *QQml_valueTypeProvider();
 class Q_QML_PRIVATE_EXPORT QQmlColorProvider
 {
 public:
+    virtual ~QQmlColorProvider();
     virtual QVariant colorFromString(const QString &, bool *);
     virtual unsigned rgbaFromString(const QString &, bool *);
 
@@ -293,6 +295,7 @@ Q_QML_PRIVATE_EXPORT QQmlColorProvider *QQml_colorProvider();
 class Q_QML_PRIVATE_EXPORT QQmlGuiProvider
 {
 public:
+    virtual ~QQmlGuiProvider();
     virtual QObject *application(QObject *parent);
     virtual QObject *inputMethod();
     virtual QStringList fontFamilies();
index ba137f8..9331905 100644 (file)
@@ -1880,6 +1880,9 @@ bool QQmlTypeLoader::isScriptLoaded(const QUrl &url) const
     return m_scriptCache.contains(url);
 }
 
+QQmlTypeData::TypeDataCallback::~TypeDataCallback()
+{
+}
 
 QQmlTypeData::QQmlTypeData(const QUrl &url, QQmlTypeLoader::Options options, 
                                            QQmlTypeLoader *manager)
index 4cbfc28..bb2f29f 100644 (file)
@@ -429,7 +429,7 @@ public:
 
     // Used by QQmlComponent to get notifications
     struct TypeDataCallback {
-        ~TypeDataCallback() {}
+        virtual ~TypeDataCallback();
         virtual void typeDataProgress(QQmlTypeData *, qreal) {}
         virtual void typeDataReady(QQmlTypeData *) {}
     };
index da7bb79..714cf59 100644 (file)
@@ -499,7 +499,7 @@ struct Function {
     Function(QQmlPool *pool)
       : pool(pool), tempCount(0) {}
 
-    ~Function();
+    virtual ~Function();
 
     BasicBlock *newBasicBlock();
     QString *newString(const QString &text);
index da33116..6d045c8 100644 (file)
@@ -876,6 +876,10 @@ QQuickVDMObjectData::QQuickVDMObjectData(
 static const QQuickVisualAdaptorModel::Accessors qt_vdm_null_accessors;
 static const VDMListDelegateDataType qt_vdm_list_accessors;
 
+QQuickVisualAdaptorModel::Accessors::~Accessors()
+{
+}
+
 QQuickVisualAdaptorModel::QQuickVisualAdaptorModel()
     : accessors(&qt_vdm_null_accessors)
 {
index 9c81d1e..1ce2aa2 100644 (file)
@@ -65,6 +65,7 @@ public:
     {
     public:
         inline Accessors() {}
+        virtual ~Accessors();
         virtual int count(const QQuickVisualAdaptorModel &) const { return 0; }
         virtual void cleanup(QQuickVisualAdaptorModel &, QQuickVisualDataModel * = 0) const {}