From b366dba682fa7d45db1c1667f74d5f94a0dffb6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 6 Jan 2010 21:29:39 +0100 Subject: [PATCH] After suggestion from Jim Vollner, remove dead pointers from the used list --- lib/tokenize.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index cc4a08ebf..e025d248c 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -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(); } }