From be57aa5ad5ee10b10c0985d132f4b78fed2b235c Mon Sep 17 00:00:00 2001 From: Lauri Nurmi Date: Tue, 14 Jun 2011 07:26:59 +0200 Subject: [PATCH] Fixed #2836 ([PATCH] FP: Dereferenced iterator has been erased) --- lib/checkstl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }