From ae2a02ad934048a013c228f8284b9168692455aa Mon Sep 17 00:00:00 2001 From: Zachary Blair Date: Tue, 15 Jun 2010 22:03:38 -0700 Subject: [PATCH] Applied review suggestions for Ticket #920 --- lib/checkother.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }