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:
@@ -1437,7 +1437,7 @@ bool QmakeProject::requiresTargetPanel() const
|
||||
// but more pratical then duplicated the code everywhere
|
||||
QString QmakeProject::disabledReasonForRunConfiguration(const QString &proFilePath)
|
||||
{
|
||||
if (!QFileInfo(proFilePath).exists())
|
||||
if (!QFileInfo::exists(proFilePath))
|
||||
return tr("The .pro file \"%1\" does not exist.")
|
||||
.arg(QFileInfo(proFilePath).fileName());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user