Fixed Cppcheck postincrement warnings
This commit is contained in:
parent
70fcf5af87
commit
d6dae27803
|
@ -830,10 +830,10 @@ void TemplateSimplifier::simplifyTemplateAliases(std::list<TemplateSimplifier::T
|
||||||
FindToken(tok));
|
FindToken(tok));
|
||||||
if (it == templateInstantiations->end())
|
if (it == templateInstantiations->end())
|
||||||
continue;
|
continue;
|
||||||
if (it == it1)
|
|
||||||
it1++;
|
|
||||||
std::list<TokenAndName>::iterator next = it;
|
std::list<TokenAndName>::iterator next = it;
|
||||||
next++;
|
++next;
|
||||||
|
if (it == it1)
|
||||||
|
it1 = next;
|
||||||
templateInstantiations->erase(it,next);
|
templateInstantiations->erase(it,next);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue