diff --git a/lib/templatesimplifier.cpp b/lib/templatesimplifier.cpp index f27d2d057..58731a470 100644 --- a/lib/templatesimplifier.cpp +++ b/lib/templatesimplifier.cpp @@ -1397,7 +1397,7 @@ void TemplateSimplifier::replaceTemplateUsage(Token * const instantiationToken, break; } - typetok = typetok ? typetok->next() : 0; + typetok = typetok->next(); } else { if (typeCountInInstantiation < typesUsedInTemplateInstantiation.size()) typetok = typesUsedInTemplateInstantiation[typeCountInInstantiation++];