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"))
|
else if (Token::simpleMatch(tok, "* 0"))
|
||||||
{
|
{
|
||||||
if (Token::Match(tok->previous(), "[<>;{}=+-*/(,]") ||
|
if (Token::Match(tok->previous(), "return|;|{|}|=|(|,|%op%"))
|
||||||
Token::Match(tok->previous(), "return|<<"))
|
|
||||||
{
|
{
|
||||||
nullPointerError(tok);
|
nullPointerError(tok);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue