forked from qt-creator/qt-creator
Utils: Replace FileName::FileName(QFileInfo) by a named constructor
More consistent with the fromString case and avoiding false conversions QString -> QFileInfo -> FileName in case the inheritance of QString suddenly disappears. Change-Id: Ib14646ab1a660fd45dd1ea6862a0b5faa52ad0e3 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -653,7 +653,7 @@ void DebuggerItemManagerPrivate::autoDetectCdbDebuggers()
|
||||
// Pre Windows SDK 8: Check 'Debugging Tools for Windows'
|
||||
for (const QFileInfo &fi : dir.entryInfoList({"Debugging Tools for Windows*"},
|
||||
QDir::Dirs | QDir::NoDotAndDotDot)) {
|
||||
FileName filePath(fi);
|
||||
FileName filePath = FileName::fromFileInfo(fi);
|
||||
filePath.appendPath("cdb.exe");
|
||||
if (!cdbs.contains(filePath))
|
||||
cdbs.append(filePath);
|
||||
|
||||
Reference in New Issue
Block a user