mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 08:36:32 +01:00
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:
parent
97b1725023
commit
ac923be7af
6 changed files with 6 additions and 6 deletions
|
|
@ -454,7 +454,7 @@ class AlsaAudioBackend : public AudioBackend {
|
|||
}
|
||||
|
||||
bool valid_port (PortHandle port) const {
|
||||
return _ports.find (static_cast<AlsaPort*>(port)) != _ports.end ();
|
||||
return std::find (_ports.begin(), _ports.end(), static_cast<AlsaPort*>(port)) != _ports.end ();
|
||||
}
|
||||
|
||||
AlsaPort* find_port (const std::string& port_name) const {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue