Fixed #2836 ([PATCH] FP: Dereferenced iterator has been erased)

This commit is contained in:
Lauri Nurmi 2011-06-14 07:26:59 +02:00 committed by Daniel Marjamäki
parent f04f060e71
commit be57aa5ad5
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}