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:
@@ -2529,7 +2529,7 @@ FilePath GitClient::gitBinDirectory() const
|
||||
// Git for Windows uses Git/usr/bin. Prefer that if it exists.
|
||||
QString usrBinPath = path;
|
||||
usrBinPath.replace(usrBinPath.size() - 3, 3, "usr/bin");
|
||||
if (QFile::exists(usrBinPath))
|
||||
if (QFileInfo::exists(usrBinPath))
|
||||
path = usrBinPath;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user