Remove duplicate checks

This commit is contained in:
Dmitry-Me 2014-09-03 14:17:34 +04:00
parent 6d27ca6c9a
commit 68d650e9ac
1 changed files with 2 additions and 2 deletions

View File

@ -1308,9 +1308,9 @@ static void valueFlowForLoopSimplify(Token * const bodyStart, const unsigned int
while (parent) {
const Token * const p = parent;
parent = parent->astParent();
if (parent && parent->str() == ":")
if (!parent || parent->str() == ":")
break;
if (parent && parent->str() == "?") {
if (parent->str() == "?") {
if (parent->astOperand2() != p)
parent = NULL;
break;