Simplify null pointer handling
This commit is contained in:
parent
f111a89639
commit
0a1b8c22d6
|
@ -1864,7 +1864,7 @@ bool CheckUninitVar::isMemberVariableAssignment(const Token *tok, const std::str
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (Token::simpleMatch(ftok ? ftok->previous() : nullptr, "= * ("))
|
else if (ftok && Token::simpleMatch(ftok->previous(), "= * ("))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue