aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqml.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2023-10-16 09:17:42 +0200
committerUlf Hermann <ulf.hermann@qt.io>2023-10-19 09:30:13 +0200
commitbf2258e6f44f1279eee5e9c2dd595c5dd2020784 (patch)
treeada16548f855b1b778bbfbb1ac1e09522c17e472 /src/qml/qml/qqml.cpp
parentbbeca33068718b8f5b820d20085e42ca86a5ffd5 (diff)
QtQml: Don't unnecessarily detour through the CU to look up types
Since we also store partial types as QQmlType now, we can just look them up the regular way. Pick-to: 6.6 6.5 6.2 Fixes: QTBUG-117788 Change-Id: Id3e81853f802419f1121ef5e856c3272a3c977a1 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/qml/qml/qqml.cpp')
-rw-r--r--src/qml/qml/qqml.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp
index d96a4d7d97..88e559f54f 100644
--- a/src/qml/qml/qqml.cpp
+++ b/src/qml/qml/qqml.cpp
@@ -1962,14 +1962,8 @@ bool AOTCompiledContext::loadTypeLookup(uint index, void *target) const
const QV4::Heap::QQmlTypeWrapper *typeWrapper = static_cast<const QV4::Heap::QQmlTypeWrapper *>(
l->qmlTypeLookup.qmlTypeWrapper);
- QQmlEnginePrivate *ep = QQmlEnginePrivate::get(qmlEngine());
QMetaType metaType = typeWrapper->type().typeId();
- if (!metaType.isValid()) {
- metaType = ep->typeLoader.getType(typeWrapper->type().sourceUrl())
- ->compilationUnit()->qmlType.typeId();
- }
-
*static_cast<const QMetaObject **>(target)
= QQmlMetaType::metaObjectForType(metaType).metaObject();
return true;