Remove redundant check

This commit is contained in:
Dmitry-Me 2018-01-01 03:06:17 +03:00
parent fa42a08a71
commit 70817b3d4e
1 changed files with 1 additions and 1 deletions

View File

@ -477,7 +477,7 @@ std::list<TemplateSimplifier::TokenAndName> TemplateSimplifier::getTemplateDecla
if (!tok->tokAt(2)) if (!tok->tokAt(2))
syntaxError(tok->next()); syntaxError(tok->next());
if (tok->strAt(2)=="typename" && if (tok->strAt(2)=="typename" &&
(!tok->tokAt(3) || !Token::Match(tok->tokAt(3), "%name%|.|,|>"))) !Token::Match(tok->tokAt(3), "%name%|.|,|>"))
syntaxError(tok->next()); syntaxError(tok->next());
codeWithTemplates = true; codeWithTemplates = true;
Token *parmEnd = tok->next()->findClosingBracket(); Token *parmEnd = tok->next()->findClosingBracket();