Applied review suggestions for Ticket #920
This commit is contained in:
parent
dc12a9b3b5
commit
ae2a02ad93
|
@ -3576,8 +3576,7 @@ void CheckOther::checkEmptyCatchBlock()
|
|||
{
|
||||
tok = tok->tokAt(2);
|
||||
|
||||
if (Token::Match(tok, "( const| %type% *|&| %var% ) { }") ||
|
||||
Token::simpleMatch(tok, "( . . . ) { }"))
|
||||
if (Token::simpleMatch(tok->link(), ") { }"))
|
||||
{
|
||||
emptyCatchBlockError(tok);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue