From 8248b5a485a2b8885442d6511906526548d9d07e Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 24 Aug 2020 14:10:41 +0200 Subject: Always group the metaType and listType together They are always created and destroyed together, so grouping them makes the required memory management of them easier. Change-Id: Ia1980f31f9bdff6a1accd229bc8380ae153edf67 Reviewed-by: Fabian Kosmale --- src/qml/qml/qqmltypewrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qml/qml/qqmltypewrapper.cpp') diff --git a/src/qml/qml/qqmltypewrapper.cpp b/src/qml/qml/qqmltypewrapper.cpp index 6258403f33..495822251f 100644 --- a/src/qml/qml/qqmltypewrapper.cpp +++ b/src/qml/qml/qqmltypewrapper.cpp @@ -397,7 +397,7 @@ ReturnedValue QQmlTypeWrapper::virtualInstanceOf(const Object *typeObject, const QQmlRefPointer td = qenginepriv->typeLoader.getType(typeWrapper->d()->type().sourceUrl()); ExecutableCompilationUnit *cu = td->compilationUnit(); - myQmlType = qenginepriv->metaObjectForType(cu->metaTypeId.id()); + myQmlType = qenginepriv->metaObjectForType(cu->typeIds.id.id()); } else { myQmlType = qenginepriv->metaObjectForType(myTypeId.id()); } -- cgit v1.2.3