mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
now with C++98 compat
This commit is contained in:
parent
a3856d44b2
commit
ce052ba20a
1 changed files with 2 additions and 8 deletions
|
|
@ -797,10 +797,7 @@ DummyAudioBackend::unregister_port (PortEngine::PortHandle port_handle)
|
|||
return;
|
||||
}
|
||||
disconnect_all(port_handle);
|
||||
PortMap::const_iterator it = _portmap.find ((*i)->name());
|
||||
if (it != _portmap.end()) {
|
||||
_portmap.erase (it);
|
||||
}
|
||||
_portmap.erase (port->name());
|
||||
_ports.erase (i);
|
||||
delete port;
|
||||
}
|
||||
|
|
@ -921,10 +918,7 @@ DummyAudioBackend::unregister_ports (bool system_only)
|
|||
DummyPort* port = *cur;
|
||||
if (! system_only || (port->is_physical () && port->is_terminal ())) {
|
||||
port->disconnect_all ();
|
||||
PortMap::const_iterator it = _portmap.find (port->name());
|
||||
if (it != _portmap.end()) {
|
||||
_portmap.erase (it);
|
||||
}
|
||||
_portmap.erase (port->name());
|
||||
delete port;
|
||||
_ports.erase (cur);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue