forked from qt-creator/qt-creator
More FileName::appendPath() -> .pathAppended()
Change-Id: I403d34e4f52f758339c158efc7a11fd329e3e043 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -475,14 +475,11 @@ void CompilationDatabaseProject::buildTreeAndProjectParts(const Utils::FileName
|
||||
}
|
||||
|
||||
if (!extras.empty()) {
|
||||
const QString baseDir = projectFile.parentDir().toString();
|
||||
const Utils::FileName baseDir = projectFile.parentDir();
|
||||
|
||||
QStringList extraFiles;
|
||||
for (const QString &extra : extras) {
|
||||
auto extraFile = Utils::FileName::fromString(baseDir);
|
||||
extraFile.appendPath(extra);
|
||||
extraFiles.append(extraFile.toString());
|
||||
}
|
||||
for (const QString &extra : extras)
|
||||
extraFiles.append(baseDir.pathAppended(extra).toString());
|
||||
|
||||
CppTools::RawProjectPart rppExtra;
|
||||
rppExtra.setFiles(extraFiles);
|
||||
|
||||
Reference in New Issue
Block a user