Fix issue detected by Coverity, ternary condition is always true
This commit is contained in:
parent
267a2e154d
commit
6cc7f46696
|
@ -1397,7 +1397,7 @@ void TemplateSimplifier::replaceTemplateUsage(Token * const instantiationToken,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
typetok = typetok ? typetok->next() : 0;
|
typetok = typetok->next();
|
||||||
} else {
|
} else {
|
||||||
if (typeCountInInstantiation < typesUsedInTemplateInstantiation.size())
|
if (typeCountInInstantiation < typesUsedInTemplateInstantiation.size())
|
||||||
typetok = typesUsedInTemplateInstantiation[typeCountInInstantiation++];
|
typetok = typesUsedInTemplateInstantiation[typeCountInInstantiation++];
|
||||||
|
|
Loading…
Reference in New Issue