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:
@@ -91,11 +91,11 @@ void XcodeProbe::setupDefaultToolchains(const QString &devPath)
|
||||
|
||||
const QFileInfo clangCInfo = getClangInfo("clang");
|
||||
if (clangCInfo.exists())
|
||||
clangProfile.cCompilerPath = Utils::FileName(clangCInfo);
|
||||
clangProfile.cCompilerPath = Utils::FileName::fromFileInfo(clangCInfo);
|
||||
|
||||
const QFileInfo clangCppInfo = getClangInfo("clang++");
|
||||
if (clangCppInfo.exists())
|
||||
clangProfile.cxxCompilerPath = Utils::FileName(clangCppInfo);
|
||||
clangProfile.cxxCompilerPath = Utils::FileName::fromFileInfo(clangCppInfo);
|
||||
|
||||
QSet<QString> allArchitectures;
|
||||
static const std::map<QString, QStringList> sdkConfigs {
|
||||
|
||||
Reference in New Issue
Block a user