diff --git a/src/tokenize.cpp b/src/tokenize.cpp index 32bbeae99..d7b212f6b 100644 --- a/src/tokenize.cpp +++ b/src/tokenize.cpp @@ -700,9 +700,9 @@ void Tokenizer::simplifyNamespaces() tok->deleteNext(); start->deleteNext(); start->deleteNext(); - token = start->next(); if (start->previous()) { + token = start->next(); start = start->previous(); start->deleteNext(); }