From f912734b70344cae717b96bee552b671cab2a2c5 Mon Sep 17 00:00:00 2001 From: chrchr Date: Tue, 27 Feb 2024 18:58:09 +0100 Subject: [PATCH] Simplify --- lib/tokenize.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)