MSVC won't allow us to erase an item referenced by const_iterator
authorJohn Emmas <johne53@tiscali.co.uk>
Sat, 6 May 2017 12:33:38 +0000 (13:33 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Sat, 6 May 2017 12:33:38 +0000 (13:33 +0100)
libs/ardour/selection.cc

index 2e887afcd5af2db02fd7d8edd25072484afe5c18..876056c3da81a7b55cfb3cebc46f7ffe859f1b86 100644 (file)
@@ -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;