fix port-sort order for good.

TODO find out how to make std::set::find() work with custom sort order,
as std::find may only be O(N) and not O(log (N)).
This commit is contained in:
Robin Gareus 2016-07-08 21:31:52 +02:00
parent 97b1725023
commit ac923be7af
6 changed files with 6 additions and 6 deletions

View file

@ -1054,7 +1054,7 @@ CoreAudioBackend::unregister_port (PortEngine::PortHandle port_handle)
return;
}
CoreBackendPort* port = static_cast<CoreBackendPort*>(port_handle);
PortIndex::iterator i = _ports.find (static_cast<CoreBackendPort*>(port_handle));
PortIndex::iterator i = std::find (_ports.begin(), _ports.end(), static_cast<CoreBackendPort*>(port_handle));
if (i == _ports.end ()) {
PBD::warning << _("CoreAudioBackend::unregister_port: Failed to find port") << endmsg;
return;