Fix issue detected by Coverity, ternary condition is always true

This commit is contained in:
Daniel Marjamäki 2017-08-01 11:25:28 +02:00
parent 267a2e154d
commit 6cc7f46696
1 changed files with 1 additions and 1 deletions

View File

@ -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++];