Fixed Cppcheck internal warning, simpleMatch can be used instead of Match

This commit is contained in:
Daniel Marjamäki 2015-07-23 19:13:50 +02:00
parent c2a15ac286
commit 367eecf0db
1 changed files with 1 additions and 1 deletions

View File

@ -408,7 +408,7 @@ void CheckStl::eraseCheckLoopVar(const Scope &scope, const Variable *var)
if (tok2->str() == "}") {
if (indentlevel > 0U)
--indentlevel;
else if (Token::Match(tok2, "} else {"))
else if (Token::simpleMatch(tok2, "} else {"))
tok2 = tok2->linkAt(2);
continue;
}