diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index 37ffbf2ea..a70460f5a 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -535,7 +535,7 @@ static void compileTerm(Token *&tok, AST_state& state) compileUnaryOp(tok, state, compileExpression); else compileBinOp(tok, state, compileExpression); - if (Token::Match(tok, "}")) + if (Token::simpleMatch(tok, "}")) tok = tok->next(); } else if (!state.cpp || !Token::Match(tok, "new|delete %name%|*|&|::|(|[")) { while (tok->next() && tok->next()->isName())