Fixed Cppcheck internal warning, simpleMatch can be used instead of Match
This commit is contained in:
parent
c2a15ac286
commit
367eecf0db
|
@ -408,7 +408,7 @@ void CheckStl::eraseCheckLoopVar(const Scope &scope, const Variable *var)
|
||||||
if (tok2->str() == "}") {
|
if (tok2->str() == "}") {
|
||||||
if (indentlevel > 0U)
|
if (indentlevel > 0U)
|
||||||
--indentlevel;
|
--indentlevel;
|
||||||
else if (Token::Match(tok2, "} else {"))
|
else if (Token::simpleMatch(tok2, "} else {"))
|
||||||
tok2 = tok2->linkAt(2);
|
tok2 = tok2->linkAt(2);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue