fix internal warning: [lib/valueflow.cpp:722]: (warning) Found simple pattern inside Token::Match() call: "if ("

This commit is contained in:
Matthias Krüger 2016-01-30 20:34:33 +01:00
parent 5d9f275ff8
commit 11be3a9265
1 changed files with 1 additions and 1 deletions

View File

@ -719,7 +719,7 @@ static void valueFlowOppositeCondition(SymbolDatabase *symboldatabase, const Set
if (scope->type != Scope::eIf)
continue;
Token *tok = const_cast<Token *>(scope->classDef);
if (!Token::Match(tok, "if ("))
if (!Token::simpleMatch(tok, "if ("))
continue;
const Token *cond1 = tok->next()->astOperand2();
if (!cond1 || !cond1->isComparisonOp())