After suggestion from Jim Vollner, remove dead pointers from the used list

This commit is contained in:
Daniel Marjamäki 2010-01-06 21:29:39 +01:00
parent 94b0cbbcff
commit b366dba682
1 changed files with 2 additions and 0 deletions

View File

@ -1350,8 +1350,10 @@ void Tokenizer::simplifyTemplates()
tok4->str(name2);
while (tok4->next()->str() != ">")
{
used.remove(tok4->next());
tok4->deleteNext();
}
used.remove(tok4->next());
tok4->deleteNext();
}
}