summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/corelib/kernel/qmetatype.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/corelib/kernel/qmetatype.cpp b/src/corelib/kernel/qmetatype.cpp
index 1d22d42d0f..3bf16cdebf 100644
--- a/src/corelib/kernel/qmetatype.cpp
+++ b/src/corelib/kernel/qmetatype.cpp
@@ -49,6 +49,7 @@
#include "qvector.h"
#include "qlocale.h"
#include "qeasingcurve.h"
+#include "qvariant.h"
#ifdef QT_BOOTSTRAPPED
# ifndef QT_NO_GEOM_VARIANT
@@ -1643,14 +1644,14 @@ void QMetaType::destruct(int type, void *where)
break;
#ifndef QT_BOOTSTRAPPED
case QMetaType::QVariantMap:
- static_cast< NS(QVariantMap)* >(where)->NS(QVariantMap)::~QVariantMap();
+ static_cast< NS(QVariantMap)* >(where)->NS(QVariantMap)::~QMap<class QString, class QVariant>();
break;
case QMetaType::QVariantHash:
- static_cast< NS(QVariantHash)* >(where)->NS(QVariantHash)::~QVariantHash();
- break;
- case QMetaType::QVariantList:
- static_cast< NS(QVariantList)* >(where)->NS(QVariantList)::~QVariantList();
+ static_cast< NS(QVariantHash)* >(where)->NS(QVariantHash)::~QHash<class QString, class QVariant>();
break;
+ case QMetaType::QVariantList: {
+ static_cast< NS(QVariantList)* >(where)->NS(QVariantList)::~QList<class QVariant>();
+ break; }
case QMetaType::QVariant:
static_cast< NS(QVariant)* >(where)->NS(QVariant)::~QVariant();
break;