diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index 73dc395a23a..063ba0ee8d8 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -2844,8 +2844,7 @@ bool Tokenizer::simplifyUsing() for (Token* tok = list.front(); tok; tok = tok->next()) { if (!Token::Match(tok, "using ::| %name% ::")) continue; - Token* const start = tok->next(); - Token* end = start; + Token* end = tok->next(); while (end && end->str() != ";") end = end->next(); if (!end)