Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 6a6da03e authored by Greg Kaiser's avatar Greg Kaiser
Browse files

Avoid using erase()d iterator

After calling erase(it), 'it' is no longer valid and should not be
used as it was in the 'it++' of the 'for' loop.  We change to
update 'it' to the result of erase(), and only perform 'it++' if
we're not erasing it.

Test: TreeHugger
Change-Id: If7889fdca76a6883aeb4341be1a6fff466585e29
parent 6ae73ed7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment