summaryrefslogtreecommitdiff
path: root/libs/ardour/selection.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-05-08 16:30:54 +0200
committerRobin Gareus <robin@gareus.org>2017-05-08 16:30:54 +0200
commit4e08f5c169b73c11f775c994d413319f68fabc53 (patch)
tree10e76187c08f62bb5594f78c753327b273c01384 /libs/ardour/selection.cc
parent2c7cb9065f6303c64baf4eb5dbb64db56a587d40 (diff)
iterator std::set::erase (iterator) is C++11
Diffstat (limited to 'libs/ardour/selection.cc')
-rw-r--r--libs/ardour/selection.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/selection.cc b/libs/ardour/selection.cc
index 6775759fc9..1c0e89fdf0 100644
--- a/libs/ardour/selection.cc
+++ b/libs/ardour/selection.cc
@@ -251,7 +251,7 @@ CoreSelection::remove_stripable_by_id (PBD::ID const & id)
for (SelectedStripables::iterator x = _stripables.begin(); x != _stripables.end(); ) {
if ((*x).stripable == id) {
- x = _stripables.erase (x);
+ _stripables.erase (x++);
/* keep going because there may be more than 1 pair of
stripable/automation-control in the selection.
*/