Applied review suggestions for Ticket #920

This commit is contained in:
Zachary Blair 2010-06-15 22:03:38 -07:00
parent dc12a9b3b5
commit ae2a02ad93
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}