diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-08-24 14:10:41 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-08-28 13:49:08 +0200 |
commit | 8248b5a485a2b8885442d6511906526548d9d07e (patch) | |
tree | 07d17281483f54fcbe28ed5a1add80ae0313e381 /src/qml/qml/qqmltypewrapper.cpp | |
parent | 43a532deffce7ee8c273dbff19c1b0ca941e636d (diff) |
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 <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmltypewrapper.cpp')
-rw-r--r-- | src/qml/qml/qqmltypewrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<QQmlTypeData> 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()); } |