forked from qt-creator/qt-creator
QmlDesigner: Avoid some unneeded QFileInfo constructions
Change-Id: I0289c3187f07e26d05a7ca591cc8b12b767c3502 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -693,7 +693,7 @@ static inline QString fixComponentPathForIncompatibleQt(const QString &component
|
||||
//plugin directories might contain the version number
|
||||
fixedPath.chop(4);
|
||||
fixedPath += QLatin1Char('/') + QFileInfo(componentPath).fileName();
|
||||
if (QFileInfo(fixedPath).exists())
|
||||
if (QFileInfo::exists(fixedPath))
|
||||
return fixedPath;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user