Fixed #2951 (Small code factorization in checkmemoryleak.cpp)

This commit is contained in:
Simon Martin 2011-07-30 13:10:44 +02:00 committed by Daniel Marjamäki
parent c00a1526bd
commit 50f78ce329
1 changed files with 1 additions and 3 deletions

View File

@ -2887,9 +2887,7 @@ void CheckMemoryLeakInClass::variable(const Scope *scope, const Token *tokVarnam
// Function call .. possible deallocation // Function call .. possible deallocation
else if (Token::Match(tok->previous(), "[{};] %var% (")) else if (Token::Match(tok->previous(), "[{};] %var% ("))
{ {
if (!std::bsearch(tok->str().c_str(), call_func_white_list, if (!CheckMemoryLeakInFunction::test_white_list(tok->str().c_str()))
sizeof(call_func_white_list) / sizeof(call_func_white_list[0]),
sizeof(call_func_white_list[0]), call_func_white_list_compare))
{ {
return; return;
} }