forked from qt-creator/qt-creator
QmlJS: Fix compilation with Qt4
Change-Id: I036f2ccf07b836ecff63a055e3204327d006c0d0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user