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:
hjk
2023-09-01 11:23:56 +02:00
parent 3d028125df
commit 9679412a23
40 changed files with 53 additions and 53 deletions

View File

@@ -1156,7 +1156,7 @@ void VcsBaseEditorWidget::jumpToChangeFromDiff(QTextCursor cursor)
return;
const QString fileName = findDiffFile(fileNameFromDiffSpecification(block));
const bool exists = fileName.isEmpty() ? false : QFile::exists(fileName);
const bool exists = fileName.isEmpty() ? false : QFileInfo::exists(fileName);
if (!exists)
return;