From 61f4a2975845ee609b974003edf461b7736f0c4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 23 Jun 2009 20:40:27 +0200 Subject: [PATCH] minor fix of test case --- src/checkmemoryleak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/checkmemoryleak.cpp b/src/checkmemoryleak.cpp index 39e407f48..7e77cfdf6 100644 --- a/src/checkmemoryleak.cpp +++ b/src/checkmemoryleak.cpp @@ -1163,7 +1163,7 @@ void CheckMemoryLeakInFunction::simplifycode(Token *tok, bool &all) } // Remove "if { dealloc ; callfunc ; } !!else" - else if (Token::Match(tok2->next(), "if { dealloc|assign|use ; callfunc ; } !!else")) + else if (Token::Match(tok2->next(), "if { dealloc|assign ; callfunc ; } !!else")) { Token::eraseTokens(tok2, tok2->tokAt(8)); done = false;