diff --git a/lib/checkother.cpp b/lib/checkother.cpp index bb76d6cb4..945509e27 100644 --- a/lib/checkother.cpp +++ b/lib/checkother.cpp @@ -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); }