Remove duplicate checks
This commit is contained in:
parent
6d27ca6c9a
commit
68d650e9ac
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue