forked from qt-creator/qt-creator
Replace QFile::exists by QFileInfo::exists
QFile::exists only calls QFileInfo::exists, so this saves one function call per invocation. Change-Id: I41cb407345654eeead14455a4955b8b9b015aedc Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -24,7 +24,7 @@ namespace Internal {
|
||||
template<typename File_t>
|
||||
bool containsFiles(const QString &path, const File_t &file)
|
||||
{
|
||||
return QFile::exists(QString("%1/%2").arg(path).arg(file));
|
||||
return QFileInfo::exists(QString("%1/%2").arg(path).arg(file));
|
||||
}
|
||||
|
||||
template<typename File_t, typename... T>
|
||||
|
||||
Reference in New Issue
Block a user