diff options
Diffstat (limited to 'tools/shared/qmljsimporter.cpp')
-rw-r--r-- | tools/shared/qmljsimporter.cpp | 4 |
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()); |