now with C++98 compat
This commit is contained in:
parent
a3856d44b2
commit
ce052ba20a
@ -797,10 +797,7 @@ DummyAudioBackend::unregister_port (PortEngine::PortHandle port_handle)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
disconnect_all(port_handle);
|
disconnect_all(port_handle);
|
||||||
PortMap::const_iterator it = _portmap.find ((*i)->name());
|
_portmap.erase (port->name());
|
||||||
if (it != _portmap.end()) {
|
|
||||||
_portmap.erase (it);
|
|
||||||
}
|
|
||||||
_ports.erase (i);
|
_ports.erase (i);
|
||||||
delete port;
|
delete port;
|
||||||
}
|
}
|
||||||
@ -921,10 +918,7 @@ DummyAudioBackend::unregister_ports (bool system_only)
|
|||||||
DummyPort* port = *cur;
|
DummyPort* port = *cur;
|
||||||
if (! system_only || (port->is_physical () && port->is_terminal ())) {
|
if (! system_only || (port->is_physical () && port->is_terminal ())) {
|
||||||
port->disconnect_all ();
|
port->disconnect_all ();
|
||||||
PortMap::const_iterator it = _portmap.find (port->name());
|
_portmap.erase (port->name());
|
||||||
if (it != _portmap.end()) {
|
|
||||||
_portmap.erase (it);
|
|
||||||
}
|
|
||||||
delete port;
|
delete port;
|
||||||
_ports.erase (cur);
|
_ports.erase (cur);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user