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;
|
||||
|
||||
// CONFIG variable
|
||||
foreach (const QString &configValue, valuesDirect(statics.strCONFIG)) {
|
||||
if (configValue == config)
|
||||
return true;
|
||||
}
|
||||
if (valuesDirect(statics.strCONFIG).contains(config))
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user