File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1797,13 +1797,13 @@ void TemplateSimplifier::simplifyTemplates(
17971797 }
17981798
17991799 for (std::list<TokenAndName>::const_iterator it = instantiatedTemplates.begin (); it != instantiatedTemplates.end (); ++it) {
1800- std::list<TokenAndName>::iterator it1 ;
1801- for (it1 = templateDeclarations.begin (); it1 != templateDeclarations.end (); ++it1 ) {
1802- if (it1 ->token == it->token )
1800+ std::list<TokenAndName>::iterator decl ;
1801+ for (decl = templateDeclarations.begin (); decl != templateDeclarations.end (); ++decl ) {
1802+ if (decl ->token == it->token )
18031803 break ;
18041804 }
1805- if (it1 != templateDeclarations.end ()) {
1806- templateDeclarations.erase (it1 );
1805+ if (decl != templateDeclarations.end ()) {
1806+ templateDeclarations.erase (decl );
18071807 removeTemplate (it->token );
18081808 }
18091809 }
You can’t perform that action at this time.
0 commit comments