src/checkmemoryleak.{h,cpp}: minor improvements.

Corrections for commit 0d6b6e840d

No functional change.
This commit is contained in:
Slava Semushin 2009-08-26 02:32:10 +07:00
parent ff3d1db480
commit 311fb1a1f8
2 changed files with 1 additions and 2 deletions

View File

@ -474,7 +474,7 @@ static int countParameters(const Token *tok)
const char * CheckMemoryLeakInFunction::call_func(const Token *tok, std::list<const Token *> callstack, unsigned int varid, AllocType &alloctype, AllocType &dealloctype, bool &all, unsigned int sz)
{
if (bsearch(tok->str().c_str(), call_func_white_list,
if (bsearch(tok->strAt(0), call_func_white_list,
sizeof(call_func_white_list) / sizeof(call_func_white_list[0]),
sizeof(call_func_white_list[0]), call_func_white_list_compare))
return 0;

View File

@ -37,7 +37,6 @@
#include "check.h"
#include <set>
#include <list>
#include <string>
#include <vector>