Removed redundant null pointer check

This commit is contained in:
Daniel Marjamäki 2016-01-16 14:15:51 +01:00
parent ca7ec25b92
commit d39097f52a
1 changed files with 1 additions and 1 deletions

View File

@ -213,7 +213,7 @@ CheckMemoryLeak::AllocType CheckMemoryLeak::getDeallocationType(const Token *tok
} }
} }
if (tok && tok->str() == "::") if (tok->str() == "::")
tok = tok->next(); tok = tok->next();
if (Token::Match(tok, "%name% (")) { if (Token::Match(tok, "%name% (")) {