forked from qt-creator/qt-creator
Replace QFile::exists by QFileInfo::exists
QFile::exists only calls QFileInfo::exists, so this saves one function call per invocation. Change-Id: I41cb407345654eeead14455a4955b8b9b015aedc Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -391,7 +391,7 @@ void CompilationDatabaseBuildSystem::buildTreeAndProjectParts()
|
||||
|
||||
root->addNode(std::make_unique<FileNode>(projectFilePath(), FileType::Project));
|
||||
|
||||
if (QFile::exists(dbContents.extraFileName))
|
||||
if (QFileInfo::exists(dbContents.extraFileName))
|
||||
root->addNode(std::make_unique<FileNode>(Utils::FilePath::fromString(dbContents.extraFileName),
|
||||
FileType::Project));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user