Refactoring: Use %op% instead of Token::isOp

This commit is contained in:
Daniel Marjamäki 2011-04-09 18:47:01 +02:00
parent 7320bbd8fd
commit f76eb5541c
1 changed files with 1 additions and 1 deletions

View File

@ -1492,7 +1492,7 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list<const Toke
{
addtoken(&rettail, tok, "use");
}
else if ((Token::Match(tok->previous(), "[;{}=(,]") || tok->previous()->isOp()) && Token::Match(tok, "%varid% [", varid))
else if (Token::Match(tok->previous(), ";|{|}|=|(|,|%op% %varid% [", varid))
{
// warning is written for "dealloc ; use_ ;".
// but this use doesn't affect the leak-checking