From 456e33fc7b4aba53488d63667435358ead3b33ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 5 Apr 2014 08:27:52 +0200 Subject: [PATCH] Code cleanup [ci skip] --- lib/tokenlist.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index 5070c5bfd..4d38b4123 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -460,14 +460,12 @@ static void compileTerm(Token *& tok, std::stack &op) } else { Token *name = tok; Token *par = templatefunc ? tok->linkAt(1)->next() : tok->next(); - Token *prev; + Token *prev = name; tok = par->next(); if (Token::Match(tok, ")|]")) { - prev = name; par->astOperand1(name); tok = tok->next(); } else { - prev = name; tok = tok->previous(); } while (Token::Match(tok, "(|[")) {