minor fix of test case
This commit is contained in:
parent
7f8b40d135
commit
61f4a29758
|
@ -1163,7 +1163,7 @@ void CheckMemoryLeakInFunction::simplifycode(Token *tok, bool &all)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove "if { dealloc ; callfunc ; } !!else"
|
// 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));
|
Token::eraseTokens(tok2, tok2->tokAt(8));
|
||||||
done = false;
|
done = false;
|
||||||
|
|
Loading…
Reference in New Issue