From 311fb1a1f81b144483e9b0b5a591f6a6e18bb8d6 Mon Sep 17 00:00:00 2001 From: Slava Semushin Date: Wed, 26 Aug 2009 02:32:10 +0700 Subject: [PATCH] src/checkmemoryleak.{h,cpp}: minor improvements. Corrections for commit 0d6b6e840dea7a09fa3d52b98f3148a12942e067 No functional change. --- src/checkmemoryleak.cpp | 2 +- src/checkmemoryleak.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/checkmemoryleak.cpp b/src/checkmemoryleak.cpp index c7b69d8c0..b45c0157c 100644 --- a/src/checkmemoryleak.cpp +++ b/src/checkmemoryleak.cpp @@ -474,7 +474,7 @@ static int countParameters(const Token *tok) const char * CheckMemoryLeakInFunction::call_func(const Token *tok, std::list 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; diff --git a/src/checkmemoryleak.h b/src/checkmemoryleak.h index f856a250a..efcb4140d 100644 --- a/src/checkmemoryleak.h +++ b/src/checkmemoryleak.h @@ -37,7 +37,6 @@ #include "check.h" -#include #include #include #include