Refactoring: Use Check::reportError instead of writing to std::cout. Ticket: #1839

This commit is contained in:
Daniel Marjamäki 2010-07-23 22:53:29 +02:00
parent 8a0d989190
commit 5c771adece
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ void CheckMemoryLeak::reportErr(const std::list<const Token *> &callstack, Sever
if (errorLogger)
errorLogger->reportErr(errmsg);
else
std::cout << errmsg.toXML() << std::endl;
Check::reportError(errmsg);
}
void CheckMemoryLeak::memleakError(const Token *tok, const std::string &varname)