diff options
author | Robin Gareus <robin@gareus.org> | 2016-04-24 18:34:31 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-04-24 18:34:31 +0200 |
commit | ce052ba20a2dca049fa3afcc5c58b3d1c301272d (patch) | |
tree | 8f9c6a72e387bf8becd4e71aa8a60829cba610c7 /libs | |
parent | a3856d44b2add305a8a7296c54818fedd1dffc8c (diff) |
now with C++98 compat
Diffstat (limited to 'libs')
-rw-r--r-- | libs/backends/dummy/dummy_audiobackend.cc | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libs/backends/dummy/dummy_audiobackend.cc b/libs/backends/dummy/dummy_audiobackend.cc index 7bacd17e34..94ed1a0fd7 100644 --- a/libs/backends/dummy/dummy_audiobackend.cc +++ b/libs/backends/dummy/dummy_audiobackend.cc @@ -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); } |