forked from qt-creator/qt-creator
Use QFileInfo::exist(f) instead of QFileInfo(f).exists() if possible
Faster. Change-Id: I91aa67462e11ff3258600d7f158de79942d0dc81 Reviewed-by: Marc Reilly <marc.reilly@gmail.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -144,7 +144,7 @@ ProFileEditorWidget::Link ProFileEditorWidget::findLinkAt(const QTextCursor &cur
|
||||
if (fi.isDir()) {
|
||||
QDir subDir(fi.absoluteFilePath());
|
||||
QString subProject = subDir.filePath(subDir.dirName() + QLatin1String(".pro"));
|
||||
if (QFileInfo(subProject).exists())
|
||||
if (QFileInfo::exists(subProject))
|
||||
fileName = subProject;
|
||||
else
|
||||
return link;
|
||||
|
||||
Reference in New Issue
Block a user