Fixed Cppcheck postincrement warnings

This commit is contained in:
Daniel Marjamäki 2018-01-05 17:29:40 +01:00
parent 70fcf5af87
commit d6dae27803
1 changed files with 3 additions and 3 deletions

View File

@ -830,10 +830,10 @@ void TemplateSimplifier::simplifyTemplateAliases(std::list<TemplateSimplifier::T
FindToken(tok));
if (it == templateInstantiations->end())
continue;
if (it == it1)
it1++;
std::list<TokenAndName>::iterator next = it;
next++;
++next;
if (it == it1)
it1 = next;
templateInstantiations->erase(it,next);
}