Refactoring: Use %op%

This commit is contained in:
Daniel Marjamäki 2011-04-09 18:44:07 +02:00
parent bd93997e4f
commit 7320bbd8fd
1 changed files with 1 additions and 2 deletions

View File

@ -766,8 +766,7 @@ void CheckNullPointer::nullConstantDereference()
else if (Token::simpleMatch(tok, "* 0"))
{
if (Token::Match(tok->previous(), "[<>;{}=+-*/(,]") ||
Token::Match(tok->previous(), "return|<<"))
if (Token::Match(tok->previous(), "return|;|{|}|=|(|,|%op%"))
{
nullPointerError(tok);
}