Refactoring: Renamed iterator
This commit is contained in:
parent
d06eb3eb8f
commit
f7148cbaa9
|
@ -1797,13 +1797,13 @@ void TemplateSimplifier::simplifyTemplates(
|
||||||
}
|
}
|
||||||
|
|
||||||
for (std::list<TokenAndName>::const_iterator it = instantiatedTemplates.begin(); it != instantiatedTemplates.end(); ++it) {
|
for (std::list<TokenAndName>::const_iterator it = instantiatedTemplates.begin(); it != instantiatedTemplates.end(); ++it) {
|
||||||
std::list<TokenAndName>::iterator it1;
|
std::list<TokenAndName>::iterator decl;
|
||||||
for (it1 = templateDeclarations.begin(); it1 != templateDeclarations.end(); ++it1) {
|
for (decl = templateDeclarations.begin(); decl != templateDeclarations.end(); ++decl) {
|
||||||
if (it1->token == it->token)
|
if (decl->token == it->token)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (it1 != templateDeclarations.end()) {
|
if (decl != templateDeclarations.end()) {
|
||||||
templateDeclarations.erase(it1);
|
templateDeclarations.erase(decl);
|
||||||
removeTemplate(it->token);
|
removeTemplate(it->token);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue