aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-10-12 11:37:20 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-10-12 11:44:35 +0200
commit0585f0a538c95489f49c5b6075df5bd924ea5b3e (patch)
treeb8c3fdfb9f5390a59e649df5514848a42a0c1071 /src/qml/qml
parentbb391a90b0230534581667b221ae7ddd2257a906 (diff)
QQmlMetaType: Cast the type interfaces to const when deleting
We don't need them to be mutable, and the return type of the function will become const soon. Change-Id: I3016d80df31db981d47296e468e93336d3a79ce1 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml')
-rw-r--r--src/qml/qml/qqmlmetatype.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlmetatype.cpp b/src/qml/qml/qqmlmetatype.cpp
index 71fc753c3b..4babafb78b 100644
--- a/src/qml/qml/qqmlmetatype.cpp
+++ b/src/qml/qml/qqmlmetatype.cpp
@@ -642,8 +642,8 @@ void QQmlMetaType::unregisterInternalCompositeType(const CompositeMetaTypeIds &t
QMetaType::unregisterMetaType(metaType);
QMetaType listMetaType(typeIds.listId);
QMetaType::unregisterMetaType(listMetaType);
- delete static_cast<QQmlMetaTypeInterface *>(metaType.iface());
- delete static_cast<QQmlMetaTypeInterface *>(listMetaType.iface());
+ delete static_cast<const QQmlMetaTypeInterface *>(metaType.iface());
+ delete static_cast<const QQmlMetaTypeInterface *>(listMetaType.iface());
}
int QQmlMetaType::registerUnitCacheHook(