diff --git a/lib/checkstl.cpp b/lib/checkstl.cpp index ebda75ac1..e04a6f86a 100644 --- a/lib/checkstl.cpp +++ b/lib/checkstl.cpp @@ -162,7 +162,7 @@ void CheckStl::iterators() // bailout handling. Assume that the iterator becomes valid if we see return/break. // TODO: better handling - else if (Token::Match(tok2, "return|break ;")) + else if (Token::Match(tok2, "return|break")) { validIterator = true; }