Refactoring, use continue
This commit is contained in:
parent
23ed35b1e6
commit
29265cdd49
|
@ -1661,7 +1661,8 @@ void Tokenizer::simplifyMulAndParens()
|
||||||
if (!list.front())
|
if (!list.front())
|
||||||
return;
|
return;
|
||||||
for (Token *tok = list.front()->tokAt(3); tok; tok = tok->next()) {
|
for (Token *tok = list.front()->tokAt(3); tok; tok = tok->next()) {
|
||||||
if (tok->isName()) {
|
if (!tok->isName())
|
||||||
|
continue;
|
||||||
//fix ticket #2784 - improved by ticket #3184
|
//fix ticket #2784 - improved by ticket #3184
|
||||||
unsigned int closedpars = 0;
|
unsigned int closedpars = 0;
|
||||||
Token *tokend = tok->next();
|
Token *tokend = tok->next();
|
||||||
|
@ -1718,7 +1719,6 @@ void Tokenizer::simplifyMulAndParens()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
bool Tokenizer::createTokens(std::istream &code,
|
bool Tokenizer::createTokens(std::istream &code,
|
||||||
const std::string& FileName)
|
const std::string& FileName)
|
||||||
|
|
Loading…
Reference in New Issue