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);
|
tok = tok->tokAt(2);
|
||||||
|
|
||||||
if (Token::Match(tok, "( const| %type% *|&| %var% ) { }") ||
|
if (Token::simpleMatch(tok->link(), ") { }"))
|
||||||
Token::simpleMatch(tok, "( . . . ) { }"))
|
|
||||||
{
|
{
|
||||||
emptyCatchBlockError(tok);
|
emptyCatchBlockError(tok);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue