aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4engine.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2025-06-10 13:58:13 +0200
committerUlf Hermann <ulf.hermann@qt.io>2025-06-12 06:33:24 +0200
commitcdd2300122eb50bb7161b0511b603ddca05ea7c9 (patch)
tree4a3b36306802b2307fea0c79fec21de269c5817b /src/qml/jsruntime/qv4engine.cpp
parent5137c85f1b187a9110976c2f7f807a18cea073e6 (diff)
QtQml: Move URL normalization to QQmlMetaType
We need it in many places and it's better to have it next to equalBaseUrls(). Also, it can be inline there. Change-Id: Ie83ad7a345a25a67f418c6cf9886ba8116f7a762 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4engine.cpp')
-rw-r--r--src/qml/jsruntime/qv4engine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp
index 684c36a094..82e653a645 100644
--- a/src/qml/jsruntime/qv4engine.cpp
+++ b/src/qml/jsruntime/qv4engine.cpp
@@ -2149,8 +2149,8 @@ ExecutionEngine::Module doFindModule(
const QUrl &url, const ExecutableCompilationUnit *referrer, NotFound &&notFound)
{
const QUrl resolved = referrer
- ? referrer->finalUrl().resolved(QQmlTypeLoader::normalize(url))
- : QQmlTypeLoader::normalize(url);
+ ? referrer->finalUrl().resolved(QQmlMetaType::normalizedUrl(url))
+ : QQmlMetaType::normalizedUrl(url);
auto existingModule = compilationUnits.constFind(resolved);
if (existingModule != compilationUnits.constEnd())
return *existingModule;