From f76eb5541c6d6d72d8d799ba438d1710a1a3e21c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 9 Apr 2011 18:47:01 +0200 Subject: [PATCH] Refactoring: Use %op% instead of Token::isOp --- lib/checkmemoryleak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 9aa5df0b6..92526167c 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -1492,7 +1492,7 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::listprevious(), "[;{}=(,]") || 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