forked from qt-creator/qt-creator
Fix more krazy warnings.
This commit is contained in:
@@ -73,7 +73,7 @@ QString Macro::toString() const
|
||||
if (f._functionLike) {
|
||||
text += QLatin1Char('(');
|
||||
bool first = true;
|
||||
foreach (const QByteArray formal, _formals) {
|
||||
foreach (const QByteArray &formal, _formals) {
|
||||
if (! first)
|
||||
text += QLatin1String(", ");
|
||||
else
|
||||
|
||||
@@ -1168,7 +1168,7 @@ void Preprocessor::processDefine(TokenIterator firstToken, TokenIterator lastTok
|
||||
if (macro.isFunctionLike()) {
|
||||
macroId += '(';
|
||||
bool fst = true;
|
||||
foreach (const QByteArray formal, macro.formals()) {
|
||||
foreach (const QByteArray &formal, macro.formals()) {
|
||||
if (! fst)
|
||||
macroId += ", ";
|
||||
fst = false;
|
||||
|
||||
Reference in New Issue
Block a user