@@ -99,12 +99,12 @@ static int call_func_white_list_compare(const void *a, const void *b)
9999
100100// ---------------------------------------------------------------------------
101101
102- bool CheckMemoryLeak::isclass (const Tokenizer *_tokenizer, const Token *tok, unsigned int varid) const
102+ bool CheckMemoryLeak::isclass (const Token *tok, unsigned int varid) const
103103{
104104 if (tok->isStandardType ())
105105 return false ;
106106
107- const Variable * var = _tokenizer ->getSymbolDatabase ()->getVariableFromVarId (varid);
107+ const Variable * var = tokenizer ->getSymbolDatabase ()->getVariableFromVarId (varid);
108108
109109 // return false if the type is a simple record type without side effects
110110 // a type that has no side effects (no constructors and no members with constructors)
@@ -566,7 +566,7 @@ void CheckMemoryLeakInFunction::parse_noreturn()
566566}
567567
568568
569- bool CheckMemoryLeakInFunction::notvar (const Token *tok, unsigned int varid, bool endpar) const
569+ bool CheckMemoryLeakInFunction::notvar (const Token *tok, unsigned int varid, bool endpar)
570570{
571571 const std::string end (endpar ? " &&|)" : " [;)&|]" );
572572 return bool (Token::Match (tok, (" ! %varid%" + end).c_str (), varid) ||
@@ -893,17 +893,17 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list<const Toke
893893 if (alloc == CheckMemoryLeak::New) {
894894 if (Token::Match (tok->tokAt (2 ), " new struct| %type% [(;]" )) {
895895 const int offset = tok->strAt (3 ) == " struct" ? 1 : 0 ;
896- if (isclass (_tokenizer, tok->tokAt (3 + offset), varid)) {
896+ if (isclass (tok->tokAt (3 + offset), varid)) {
897897 alloc = No;
898898 }
899899 } else if (Token::Match (tok->tokAt (2 ), " new ( nothrow ) struct| %type%" )) {
900900 const int offset = tok->strAt (6 ) == " struct" ? 1 : 0 ;
901- if (isclass (_tokenizer, tok->tokAt (6 + offset), varid)) {
901+ if (isclass (tok->tokAt (6 + offset), varid)) {
902902 alloc = No;
903903 }
904904 } else if (Token::Match (tok->tokAt (2 ), " new ( std :: nothrow ) struct| %type%" )) {
905905 const int offset = tok->strAt (8 ) == " struct" ? 1 : 0 ;
906- if (isclass (_tokenizer, tok->tokAt (8 + offset), varid)) {
906+ if (isclass (tok->tokAt (8 + offset), varid)) {
907907 alloc = No;
908908 }
909909 }
0 commit comments