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:
@@ -173,9 +173,8 @@ void AutoreconfStep::run(QFutureInterface<bool> &interface)
|
||||
|
||||
// Check whether we need to run autoreconf
|
||||
const QString projectDir(bc->target()->project()->projectDirectory().toString());
|
||||
const QFileInfo configureInfo(projectDir + QLatin1String("/configure"));
|
||||
|
||||
if (!configureInfo.exists())
|
||||
if (!QFileInfo::exists(projectDir + QLatin1String("/configure")))
|
||||
m_runAutoreconf = true;
|
||||
|
||||
if (!m_runAutoreconf) {
|
||||
|
||||
Reference in New Issue
Block a user