aboutsummaryrefslogtreecommitdiffstats
path: root/tools/shared/qmljsimporter.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2020-09-30 11:02:53 +0200
committerUlf Hermann <ulf.hermann@qt.io>2020-10-02 15:33:04 +0200
commitb078890608344f0556a0ff50aab62ede83e0e180 (patch)
tree75e811d2f3062f05dca2396d34a06363d5bdb322 /tools/shared/qmljsimporter.cpp
parent85dd91f27b16fabe04575bd3b01bccc44b43d43f (diff)
qmllint: Remove ComponentVersion
QTypeRevision does all we need there. Change-Id: Ib27ae2d58167a7a45fac31262a45e387d047af89 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'tools/shared/qmljsimporter.cpp')
-rw-r--r--tools/shared/qmljsimporter.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/tools/shared/qmljsimporter.cpp b/tools/shared/qmljsimporter.cpp
index b7de18e818..f2e8453c7c 100644
--- a/tools/shared/qmljsimporter.cpp
+++ b/tools/shared/qmljsimporter.cpp
@@ -98,9 +98,7 @@ QmlJSImporter::Import QmlJSImporter::readQmldir(const QString &path)
if (mo == qmlComponents.end())
mo = qmlComponents.insert(it.key(), localFile2ScopeTree(filePath));
- (*mo)->addExport(
- it.key(), reader.typeNamespace(),
- ComponentVersion(it->version));
+ (*mo)->addExport(it.key(), reader.typeNamespace(), it->version);
}
for (auto it = qmlComponents.begin(), end = qmlComponents.end(); it != end; ++it)
result.objects.insert(it.key(), it.value());