mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
fix CoreAudio backend to use shared_ptr
This commit is contained in:
parent
d827f3fdae
commit
ff41232d16
2 changed files with 45 additions and 44 deletions
|
|
@ -423,8 +423,8 @@ class CoreAudioBackend : public AudioBackend, public PortEngineSharedImpl {
|
|||
pthread_mutex_unlock (&_port_callback_mutex);
|
||||
}
|
||||
|
||||
BackendPort * find_port_in (std::vector<BackendPort *> plist, const std::string& port_name) const {
|
||||
for (std::vector<BackendPort*>::const_iterator it = plist.begin (); it != plist.end (); ++it) {
|
||||
BackendPortPtr find_port_in (std::vector<BackendPortPtr> const & plist, const std::string& port_name) const {
|
||||
for (std::vector<BackendPortPtr>::const_iterator it = plist.begin (); it != plist.end (); ++it) {
|
||||
if ((*it)->name () == port_name) {
|
||||
return *it;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue