Replace match call with explicit comparison

This commit is contained in:
Dmitry-Me 2015-08-28 15:16:10 +03:00
parent 966be8f555
commit 81613d958a
1 changed files with 1 additions and 1 deletions

View File

@ -784,7 +784,7 @@ static void valueFlowReverse(TokenList *tokenlist,
if (!var->isLocal()) {
if (!Token::Match(tok2->previous(), ")|else|do {"))
break;
if (Token::simpleMatch(tok2->previous(), ") {") &&
if ((tok2->previous()->str() == ")") &&
!Token::Match(tok2->linkAt(-1)->previous(), "if|for|while ("))
break;
}