Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
bcf29992
Commit
bcf29992
authored
Apr 20, 2010
by
Oswald Buddenhagen
Browse files
eliminate duplicates from SUBDIRS
otherwise we may re-process subdirs multiple times in cumulative mode.
parent
f26019be
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/manual/proparser/main.cpp
View file @
bcf29992
...
...
@@ -68,7 +68,9 @@ static int evaluate(const QString &fileName, const QString &in_pwd, const QStrin
return
2
;
if
(
visitor
.
templateType
()
==
ProFileEvaluator
::
TT_Subdirs
)
{
foreach
(
const
QString
&
subDirVar
,
visitor
.
values
(
QLatin1String
(
"SUBDIRS"
)))
{
QStringList
subdirs
=
visitor
.
values
(
QLatin1String
(
"SUBDIRS"
));
subdirs
.
removeDuplicates
();
foreach
(
const
QString
&
subDirVar
,
subdirs
)
{
QString
realDir
;
const
QString
subDirKey
=
subDirVar
+
QLatin1String
(
".subdir"
);
const
QString
subDirFileKey
=
subDirVar
+
QLatin1String
(
".file"
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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