From 630d9ba5520aac10b50468d369caa6f5c2d9f51c Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Sun, 31 Jan 2010 07:13:09 +0100 Subject: [PATCH] Fixed #1326 (remove simplified enum definitions) --- lib/tokenize.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index b50b9c466..932c7b44f 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -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();