Replace match call with explicit comparison
This commit is contained in:
parent
966be8f555
commit
81613d958a
|
@ -784,7 +784,7 @@ static void valueFlowReverse(TokenList *tokenlist,
|
||||||
if (!var->isLocal()) {
|
if (!var->isLocal()) {
|
||||||
if (!Token::Match(tok2->previous(), ")|else|do {"))
|
if (!Token::Match(tok2->previous(), ")|else|do {"))
|
||||||
break;
|
break;
|
||||||
if (Token::simpleMatch(tok2->previous(), ") {") &&
|
if ((tok2->previous()->str() == ")") &&
|
||||||
!Token::Match(tok2->linkAt(-1)->previous(), "if|for|while ("))
|
!Token::Match(tok2->linkAt(-1)->previous(), "if|for|while ("))
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue