Commit cae38634 authored by Nikolai Kosjar's avatar Nikolai Kosjar

QmlJS: Fix compilation with Qt4

Change-Id: I036f2ccf07b836ecff63a055e3204327d006c0d0
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
parent 180e613e
......@@ -533,7 +533,7 @@ void Snapshot::insertLibraryInfo(const QString &path, const LibraryInfo &info)
QStringList splitPath = path.split(QLatin1Char('/'));
foreach (const ImportKey &importKey, packages) {
QString requiredPath = QStringList(splitPath.mid(0, splitPath.size() - importKey.splitPath.size()))
.join(QLatin1Char('/'));
.join(QLatin1String("/"));
cImport.possibleExports << Export(importKey, requiredPath, true);
}
foreach (const QmlDirParser::Component &component, info.components()) {
......
......@@ -432,7 +432,7 @@ QString ImportKey::toString() const
res = path();
break;
case ImportType::Library:
res = splitPath.join(QLatin1Char('.'));
res = splitPath.join(QLatin1String("."));
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment