fix internal message: [lib/valueflow.cpp:239]: (warning) Found simple pattern inside Token::Match() call: "} ;"

This commit is contained in:
Matthias Krüger 2015-02-07 12:51:17 +01:00
parent 29db3eb848
commit dd70b6e0cd
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ static bool bailoutSelfAssignment(const Token * const tok)
static bool isReturn(const Token *tok)
{
const Token *prev = tok ? tok->previous() : nullptr;
if (Token::Match(prev ? prev->previous() : nullptr, "} ;"))
if (Token::simpleMatch(prev ? prev->previous() : nullptr, "} ;"))
prev = prev->previous();
if (Token::simpleMatch(prev, "}")) {