Remove redundant check
This commit is contained in:
parent
fa42a08a71
commit
70817b3d4e
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue