Remove redundant check

This commit is contained in:
Dmitry-Me 2017-08-24 18:11:54 +03:00
parent 2582bbd0f6
commit eba9ea0ed0
1 changed files with 1 additions and 1 deletions

View File

@ -4052,7 +4052,7 @@ void Tokenizer::removeMacroInClassDef()
void Tokenizer::removeMacroInVarDecl() void Tokenizer::removeMacroInVarDecl()
{ {
for (Token *tok = list.front(); tok; tok = tok->next()) { for (Token *tok = list.front(); tok; tok = tok->next()) {
if (Token::Match(tok, "[;{}] %name% (") && tok->next() && tok->next()->isUpperCaseName()) { if (Token::Match(tok, "[;{}] %name% (") && tok->next()->isUpperCaseName()) {
// goto ')' parentheses // goto ')' parentheses
const Token *tok2 = tok; const Token *tok2 = tok;
int parlevel = 0; int parlevel = 0;