forked from qt-creator/qt-creator
Fix warning: "Missing reference in range-for with non trivial type"
[-Wclazy-range-loop] Change-Id: I5dcb263c754d423740e7bce3dcb948d52f2dec67 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -609,7 +609,7 @@ bool SdkManagerOutputParser::parseAbstractData(SdkManagerOutputParser::GenericPa
|
||||
extraKeys << installLocationKey << revisionKey << descriptionKey;
|
||||
foreach (QString line, input) {
|
||||
QString value;
|
||||
for (auto key: extraKeys) {
|
||||
for (const auto &key: qAsConst(extraKeys)) {
|
||||
if (valueForKey(key, line, &value)) {
|
||||
if (key == installLocationKey)
|
||||
output.installedLocation = Utils::FileName::fromString(value);
|
||||
|
||||
Reference in New Issue
Block a user