Merge pull request #423 from Dmitry-Me/deconvoluteTernaryPlusCall
Simplify null pointer handling
This commit is contained in:
commit
a5b863796c
|
@ -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