Skip to content

Commit 367eecf

Browse files
committed
Fixed Cppcheck internal warning, simpleMatch can be used instead of Match
1 parent c2a15ac commit 367eecf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkstl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ void CheckStl::eraseCheckLoopVar(const Scope &scope, const Variable *var)
408408
if (tok2->str() == "}") {
409409
if (indentlevel > 0U)
410410
--indentlevel;
411-
else if (Token::Match(tok2, "} else {"))
411+
else if (Token::simpleMatch(tok2, "} else {"))
412412
tok2 = tok2->linkAt(2);
413413
continue;
414414
}

0 commit comments

Comments
 (0)