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:
@@ -511,7 +511,7 @@ bool JsonWizardFactory::initialize(const QVariantMap &data, const QDir &baseDir,
|
||||
strVal = data.value(QLatin1String(ICON_KEY)).toString();
|
||||
if (!strVal.isEmpty()) {
|
||||
strVal = baseDir.absoluteFilePath(strVal);
|
||||
if (!QFileInfo(strVal).exists()) {
|
||||
if (!QFileInfo::exists(strVal)) {
|
||||
*errorMessage = tr("Icon \"%1\" not found.").arg(strVal);
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user