forked from qt-creator/qt-creator
use QList::contains() instead of iterating
This commit is contained in:
@@ -2043,10 +2043,8 @@ bool ProFileEvaluator::Private::isActiveConfig(const QString &config, bool regex
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
// CONFIG variable
|
// CONFIG variable
|
||||||
foreach (const QString &configValue, valuesDirect(statics.strCONFIG)) {
|
if (valuesDirect(statics.strCONFIG).contains(config))
|
||||||
if (configValue == config)
|
return true;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user