Skip to content

Commit 2cd00af

Browse files
committed
Simplify
1 parent 96ed020 commit 2cd00af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/templatesimplifier.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,7 +691,7 @@ bool TemplateSimplifier::getTemplateDeclarations()
691691
const int namepos = getTemplateNamePosition(parmEnd);
692692
if (namepos > 0) {
693693
if (!tok->scopeInfo())
694-
mTokenizer.syntaxError(tok);
694+
syntaxError(tok);
695695
TokenAndName decl(tok, tok->scopeInfo()->name, parmEnd->tokAt(namepos), parmEnd);
696696
if (decl.isForwardDeclaration()) {
697697
// Declaration => add to mTemplateForwardDeclarations
@@ -3986,7 +3986,7 @@ void TemplateSimplifier::simplifyTemplates(const std::time_t maxtime)
39863986
// delete the "template < >"
39873987
Token * tok = it->token();
39883988
if (!tok)
3989-
mTokenizer.syntaxError(it->nameToken());
3989+
syntaxError(it->nameToken());
39903990
tok->deleteNext(2);
39913991
tok->deleteThis();
39923992
} else {

0 commit comments

Comments
 (0)