diff options
author | John Emmas <johne53@tiscali.co.uk> | 2017-05-06 13:33:38 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2017-05-06 13:33:38 +0100 |
commit | e8e68fd8c64585f01b9c04bfb1f1a648586063ef (patch) | |
tree | 59f6206cdae66b5db7a139783c6a478378d4cad3 /libs/ardour/selection.cc | |
parent | dea25f26927b5db856461516559524f81fcf9a3f (diff) |
MSVC won't allow us to erase an item referenced by const_iterator
Diffstat (limited to 'libs/ardour/selection.cc')
-rw-r--r-- | libs/ardour/selection.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/ardour/selection.cc b/libs/ardour/selection.cc index 2e887afcd5..876056c3da 100644 --- a/libs/ardour/selection.cc +++ b/libs/ardour/selection.cc @@ -236,7 +236,7 @@ CoreSelection::remove_control_by_id (PBD::ID const & id) { Glib::Threads::RWLock::WriterLock lm (_lock); - for (SelectedStripables::const_iterator x = _stripables.begin(); x != _stripables.end(); ++x) { + for (SelectedStripables::iterator x = _stripables.begin(); x != _stripables.end(); ++x) { if ((*x).controllable == id) { _stripables.erase (x); return; @@ -249,7 +249,7 @@ CoreSelection::remove_stripable_by_id (PBD::ID const & id) { Glib::Threads::RWLock::WriterLock lm (_lock); - for (SelectedStripables::const_iterator x = _stripables.begin(); x != _stripables.end(); ++x) { + for (SelectedStripables::iterator x = _stripables.begin(); x != _stripables.end(); ++x) { if ((*x).stripable == id) { _stripables.erase (x); return; |