Fixed #1326 (remove simplified enum definitions)

This commit is contained in:
Robert Reif 2010-01-31 07:13:09 +01:00 committed by Daniel Marjamäki
parent 7cbdb9f8a1
commit 630d9ba552
1 changed files with 3 additions and 1 deletions

View File

@ -5004,12 +5004,14 @@ void Tokenizer::simplifyEnum()
}
tok1 = start;
while (tok1->next() && tok1->next() != end->next())
while (tok1->next() && tok1->next() != end)
tok1->deleteNext();
tok1->deleteNext();
if (start != _tokens)
{
tok1 = start->previous();
tok1->deleteNext();
tok = tok1;
}
else
_tokens->deleteThis();