forked from qt-creator/qt-creator
McuSupport: 2.2 does not use legacy implementation
Change-Id: I77ba78f8997f1727de5b39cc49811e1def4287d5 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -589,8 +589,7 @@ bool checkDeprecatedSdkError(const Utils::FilePath &qulDir, QString &message)
|
||||
McuSdkRepository targetsAndPackages(const Utils::FilePath &dir)
|
||||
{
|
||||
QList<McuTargetDescription> descriptions;
|
||||
|
||||
bool isLegacy = false;
|
||||
bool isLegacy{false};
|
||||
|
||||
auto descriptionFiles = targetDescriptionFiles(dir);
|
||||
for (const QFileInfo &fileInfo : descriptionFiles) {
|
||||
@@ -610,8 +609,7 @@ McuSdkRepository targetsAndPackages(const Utils::FilePath &dir)
|
||||
}
|
||||
|
||||
const auto qulVersion{QVersionNumber::fromString(desc.qulVersion)};
|
||||
if (qulVersion == McuSupportOptions::minimalQulVersion())
|
||||
isLegacy = true;
|
||||
isLegacy = McuSupportOptions::isLegacyVersion(qulVersion);
|
||||
|
||||
if (qulVersion < McuSupportOptions::minimalQulVersion()) {
|
||||
const QString legacyVersion = legacySupportVersionFor(desc.qulVersion);
|
||||
|
||||
Reference in New Issue
Block a user