mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #02543
[Bug 1094962] Re: Iterators are invalidated when removing lines from TBuffer.
Tested it out on gcc and deleteLine(), setConsoleBufferSize() both still
work so far.
--
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1094962
Title:
Iterators are invalidated when removing lines from TBuffer.
Status in Mudlet the MUD client:
New
Bug description:
Calling erase invalidates the iterator passed to it and therefore,
using that iterator again (like incrementing or dereferencing or
passing it to a function) isn't allowed.
The patch below also provides greater efficiency, since the elements
that are not being removed don't move as much if lines are removed
from the middle.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1094962/+subscriptions
References