Fixed Cppcheck warning caused by a redundant null pointer test.

This commit is contained in:
Daniel Marjamäki 2015-07-08 21:04:38 +02:00
parent 0dd008e068
commit 81d9c90890
1 changed files with 1 additions and 1 deletions

View File

@ -1456,7 +1456,7 @@ void Tokenizer::simplifyTypedef()
tok2 = tok2->next();
// skip over name
if (tok2 && tok2->next() && tok2->next()->str() != ")") {
if (tok2->next() && tok2->next()->str() != ")") {
if (tok2->next()->str() != "(")
tok2 = tok2->next();