Reverted erroneously committed lines at the end of nullpointer. Sorry for that

This commit is contained in:
PKEuS 2012-04-26 17:55:31 +02:00
parent ddca2e2f85
commit c3578e88b6
1 changed files with 4 additions and 1 deletions

View File

@ -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);
}