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
a4e4c44a
Commit
a4e4c44a
authored
Feb 08, 2010
by
Oswald Buddenhagen
Browse files
re-entrancy: $$list() counter cannot be static
parent
cfa6203e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/shared/proparser/profileevaluator.cpp
View file @
a4e4c44a
...
...
@@ -296,6 +296,7 @@ public:
QHash
<
const
ProFile
*
,
QHash
<
QString
,
QStringList
>
>
m_filevaluemap
;
// Variables per include file
QString
m_outputDir
;
int
m_listCount
;
bool
m_definingTest
;
QString
m_definingFunc
;
FunctionDefs
m_functionDefs
;
...
...
@@ -330,6 +331,7 @@ ProFileEvaluator::Private::Private(ProFileEvaluator *q_, ProFileOption *option)
m_invertNext
=
false
;
m_skipLevel
=
0
;
m_definingFunc
.
clear
();
m_listCount
=
0
;
}
ProFileEvaluator
::
Private
::~
Private
()
...
...
@@ -1951,9 +1953,8 @@ QStringList ProFileEvaluator::Private::evaluateExpandFunction(const QString &fun
}
break
;
case
E_LIST
:
{
static
int
x
=
0
;
QString
tmp
;
tmp
.
sprintf
(
".QMAKE_INTERNAL_TMP_variableName_%d"
,
x
++
);
tmp
.
sprintf
(
".QMAKE_INTERNAL_TMP_variableName_%d"
,
m_listCount
++
);
ret
=
QStringList
(
tmp
);
QStringList
lst
;
foreach
(
const
QString
&
arg
,
args
)
...
...
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