diff --git a/lib/templatesimplifier.cpp b/lib/templatesimplifier.cpp index 68a442d17..58917d101 100644 --- a/lib/templatesimplifier.cpp +++ b/lib/templatesimplifier.cpp @@ -477,7 +477,7 @@ std::list TemplateSimplifier::getTemplateDecla if (!tok->tokAt(2)) syntaxError(tok->next()); if (tok->strAt(2)=="typename" && - (!tok->tokAt(3) || !Token::Match(tok->tokAt(3), "%name%|.|,|>"))) + !Token::Match(tok->tokAt(3), "%name%|.|,|>")) syntaxError(tok->next()); codeWithTemplates = true; Token *parmEnd = tok->next()->findClosingBracket();