Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Hunger
qt-creator
Commits
7df3082b
Commit
7df3082b
authored
Feb 04, 2010
by
Oswald Buddenhagen
Browse files
optimize $$unique()
parent
938fb0af
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/proparser/profileevaluator.cpp
View file @
7df3082b
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment