From eba9ea0ed0e844567bd6bc57c5cd3379fd69a858 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Thu, 24 Aug 2017 18:11:54 +0300 Subject: [PATCH] Remove redundant check --- lib/tokenize.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 6ce28a0ca..f382b6734 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -4052,7 +4052,7 @@ void Tokenizer::removeMacroInClassDef() void Tokenizer::removeMacroInVarDecl() { 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 const Token *tok2 = tok; int parlevel = 0;