Refactoring: Use %op%
This commit is contained in:
parent
bd93997e4f
commit
7320bbd8fd
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue