mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 12:19:33 +01:00
MSVC won't allow us to erase an item referenced by const_iterator
This commit is contained in:
parent
dea25f2692
commit
e8e68fd8c6
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue