From 63307c5db2bf57165d82e6157b1ef7a04b5a511d Mon Sep 17 00:00:00 2001 From: Edoardo Prezioso Date: Mon, 5 Nov 2012 00:13:04 +0100 Subject: [PATCH] Remove the now useless fix for #4245. The fix for #4276 made completely useless that branch, so remove it until someone shows a testcase which breaks this commit. --- lib/tokenize.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/tokenize.cpp b/lib/tokenize.cpp index f3c19545f..5cb7370ef 100644 --- a/lib/tokenize.cpp +++ b/lib/tokenize.cpp @@ -5095,8 +5095,6 @@ void Tokenizer::simplifyVarDecl(bool only_k_r_fpar) const Token *VarTok = type0->tokAt((int)typelen); while (Token::Match(VarTok, "*|&|const")) VarTok = VarTok->next(); - if (!VarTok) - break; // ticket 4245 - invalid code probably list.insertTokens(eq, VarTok, 2); eq->str(";");