Commit 7df3082b authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

optimize $$unique()

parent 938fb0af
......@@ -2003,9 +2003,8 @@ QStringList ProFileEvaluator::Private::evaluateExpandFunction(const QString &fun
if(args.count() != 1) {
logMessage(format("unique(var) requires one argument."));
} else {
foreach (const QString &var, values(args.first()))
if (!ret.contains(var))
ret.append(var);
ret = values(args.first());
ret.removeDuplicates();
}
break;
case E_QUOTE:
......
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