C++98 compatible iterator erase
This commit is contained in:
parent
a95be76741
commit
71bfe79e2c
@ -200,8 +200,10 @@ AbstractUI<RequestObject>::handle_ui_requests ()
|
||||
if (!(*r)->in_use ()) {
|
||||
assert (!(*r)->valid ());
|
||||
DEBUG_TRACE (PBD::DEBUG::AbstractUI, string_compose ("%1 drop invalidation trash %2\n", event_loop_name(), *r));
|
||||
std::list<InvalidationRecord*>::const_iterator tmp = r;
|
||||
++tmp;
|
||||
delete *r;
|
||||
r = trash.erase (r);
|
||||
r = tmp;
|
||||
} else {
|
||||
++r;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user