Refactoring, use continue

This commit is contained in:
Daniel Marjamäki 2017-07-30 12:46:04 +02:00
parent 23ed35b1e6
commit 29265cdd49
1 changed files with 50 additions and 50 deletions

View File

@ -1661,7 +1661,8 @@ void Tokenizer::simplifyMulAndParens()
if (!list.front())
return;
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
unsigned int closedpars = 0;
Token *tokend = tok->next();
@ -1718,7 +1719,6 @@ void Tokenizer::simplifyMulAndParens()
}
}
}
}
bool Tokenizer::createTokens(std::istream &code,
const std::string& FileName)