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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user