aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlmetatype.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2024-02-01 16:14:47 +0100
committerUlf Hermann <ulf.hermann@qt.io>2024-02-08 00:18:08 +0100
commit0af12845a4ae16fecb5107ca73ab046ea5fa5693 (patch)
treecc61c9420bc58399adfd72e227fdb3f4caaa5c37 /src/qml/qml/qqmlmetatype.cpp
parent2c6383bd8d907cbcc631e651fdb4d7aa1a3c75e0 (diff)
QtQml: Do not speculatively create ICs for non-composite types
This just clobbers the type registry with useless trash. Pick-to: 6.7 6.6 Task-number: QTBUG-120506 Change-Id: I9c56930493cfbe343359f6cb22eac2a6c76d01a2 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlmetatype.cpp')
-rw-r--r--src/qml/qml/qqmlmetatype.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/qml/qqmlmetatype.cpp b/src/qml/qml/qqmlmetatype.cpp
index 66f77edb39..10bb54fca8 100644
--- a/src/qml/qml/qqmlmetatype.cpp
+++ b/src/qml/qml/qqmlmetatype.cpp
@@ -1360,7 +1360,7 @@ QQmlType QQmlMetaType::qmlType(const QUrl &unNormalizedUrl, bool includeNonFileI
return QQmlType();
}
-QQmlType QQmlMetaType::inlineComponentTypeForUrl(const QUrl &url)
+QQmlType QQmlMetaType::fetchOrCreateInlineComponentTypeForUrl(const QUrl &url)
{
QQmlMetaTypeDataPtr data;
const auto it = data->inlineComponentTypes.constFind(url);
@@ -1370,7 +1370,6 @@ QQmlType QQmlMetaType::inlineComponentTypeForUrl(const QUrl &url)
return doRegisterInlineComponentType(data, url);
}
-
/*!
Returns a QQmlPropertyCache for \a obj if one is available.