13
0

iterator std::set::erase (iterator) is C++11

This commit is contained in:
Robin Gareus 2017-05-08 16:30:54 +02:00
parent 2c7cb9065f
commit 4e08f5c169

View File

@ -251,7 +251,7 @@ CoreSelection::remove_stripable_by_id (PBD::ID const & id)
for (SelectedStripables::iterator x = _stripables.begin(); x != _stripables.end(); ) { for (SelectedStripables::iterator x = _stripables.begin(); x != _stripables.end(); ) {
if ((*x).stripable == id) { if ((*x).stripable == id) {
x = _stripables.erase (x); _stripables.erase (x++);
/* keep going because there may be more than 1 pair of /* keep going because there may be more than 1 pair of
stripable/automation-control in the selection. stripable/automation-control in the selection.
*/ */