Refactoring: Use Check::reportError instead of writing to std::cout. Ticket: #1839
This commit is contained in:
parent
8a0d989190
commit
5c771adece
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue