Reverted erroneously committed lines at the end of nullpointer. Sorry for that
This commit is contained in:
parent
ddca2e2f85
commit
c3578e88b6
|
@ -1400,5 +1400,8 @@ void CheckNullPointer::nullPointerError(const Token *tok, const std::string &var
|
|||
void CheckNullPointer::nullPointerError(const Token *tok, const std::string &varname, const unsigned int line, bool inconclusive)
|
||||
{
|
||||
const std::string errmsg("Possible null pointer dereference: " + varname + " - otherwise it is redundant to check if " + varname + " is null at line " + MathLib::toString<unsigned int>(line));
|
||||
reportError(tok, Severity::error, "nullPointer", errmsg, inconclusive);
|
||||
if (inconclusive)
|
||||
reportInconclusiveError(tok, Severity::error, "nullPointer", errmsg);
|
||||
else
|
||||
reportError(tok, Severity::error, "nullPointer", errmsg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue