Commit 215bc29f authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

optimize

use qset instead of qlist
parent fe3cf383
......@@ -533,14 +533,14 @@ bool ProFileEvaluator::Private::visitEndProFile(ProFile * pro)
if (!mkspecDirectory.isEmpty()) {
evaluateFile(mkspecDirectory + QLatin1String("/features/default_post.prf"), &ok);
QStringList processed;
QSet<QString> processed;
forever {
bool finished = true;
QStringList configs = values(QLatin1String("CONFIG"));
for (int i = configs.size() - 1; i >= 0; --i) {
const QString config = configs[i].toLower();
if (!processed.contains(config)) {
processed.append(config);
processed.insert(config);
evaluateFile(mkspecDirectory + QLatin1String("/features/")
+ config + QLatin1String(".prf"), &ok);
if (ok) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment