Utils: add FilePath::baseName

Removing some FilePath::toFileInfo() calls

Change-Id: I49be2ef260f225e07b64ee8ace6a8cd47a9d8bb2
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
David Schulz
2021-06-03 12:53:40 +02:00
parent d5ff8b1c24
commit 068873c9d5
13 changed files with 21 additions and 17 deletions

View File

@@ -194,7 +194,7 @@ std::vector<DbEntry> CompilationDbParser::readJsonObjects() const
const QJsonObject object = document.object();
const Utils::FilePath fileName = jsonObjectFilename(object);
const QStringList flags = filterFromFileName(jsonObjectFlags(object, flagsCache),
fileName.toFileInfo().baseName());
fileName.baseName());
result.push_back({flags, fileName, object["directory"].toString()});
objectStart = m_projectFileContents.indexOf('{', objectEnd + 1);