Fixed #2836 ([PATCH] FP: Dereferenced iterator has been erased)
This commit is contained in:
parent
f04f060e71
commit
be57aa5ad5
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue