From 8f083af1e473815c47c7c2b37ef310c632fa072c Mon Sep 17 00:00:00 2001 From: PKEuS Date: Sun, 25 May 2014 22:11:56 +0200 Subject: [PATCH] Attempt to fix travis build --- lib/tokenlist.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/tokenlist.cpp b/lib/tokenlist.cpp index d33001f11..cf6974c0f 100644 --- a/lib/tokenlist.cpp +++ b/lib/tokenlist.cpp @@ -510,7 +510,6 @@ static void compilePrecedence2(Token *&tok, std::stack &op, unsigned int op.push(roundBracket); compileUnaryOp(squareBracket, 0, op, depth); tok = curlyBracket->link()->next(); - //compilePrecedence2(tok, op, depth); } else { Token* tok2 = tok; compileBinOp(tok, compileExpression, op, depth); @@ -519,7 +518,7 @@ static void compilePrecedence2(Token *&tok, std::stack &op, unsigned int } else if (tok->str() == "(" && (!iscast(tok) || Token::Match(tok->previous(), "if|while|for|switch|catch"))) { Token* tok2 = tok; tok = tok->next(); - bool opPrevTopSquare = op.size() > 0 && op.top() && op.top()->str() == "["; + bool opPrevTopSquare = !op.empty() && op.top() && op.top()->str() == "["; compileExpression(tok, op, depth); tok = tok2; if ((tok->previous() && tok->previous()->isName() && !Token::Match(tok->previous(), "return|throw"))