Use QFileInfo::exists(...) which is faster that QFileInfo(..).exists

Change-Id: I0d2e61d84c74e60ef4f54074a4ca00f2d0835562
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Montel Laurent
2017-04-13 16:26:38 +02:00
committed by Laurent Montel
parent f976dc96fd
commit 5d27bc747b
14 changed files with 21 additions and 20 deletions

View File

@@ -56,7 +56,7 @@ static QString appBundleExpandedPath(const QString &path)
QFileInfo info(path);
if (info.isDir()) {
QString exePath = path + QLatin1String("/Contents/MacOS/") + info.completeBaseName();
if (QFileInfo(exePath).exists())
if (QFileInfo::exists(exePath))
return exePath;
}
}