diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2020-04-07 17:18:10 -0600 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2020-04-07 17:18:10 -0600 |
commit | 71e04c945f0f7e81c02d8af6405c4b91397e7a84 (patch) | |
tree | 7121c076934088faad000e2459a221f606714f82 /libs/ardour | |
parent | 92005cd99242a2bddd5fe774c777b40112d563b8 (diff) |
fix return value to be a legal null shared_ptr<PortPtr>
Diffstat (limited to 'libs/ardour')
-rw-r--r-- | libs/ardour/ardour/port_engine_shared.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/ardour/port_engine_shared.h b/libs/ardour/ardour/port_engine_shared.h index bb95277346..6d1951881e 100644 --- a/libs/ardour/ardour/port_engine_shared.h +++ b/libs/ardour/ardour/port_engine_shared.h @@ -192,7 +192,7 @@ protected: boost::shared_ptr<PortMap> p = _portmap.reader (); PortMap::const_iterator it = p->find (port_name); if (it == p->end ()) { - return NULL; + return BackendPortPtr(); } return (*it).second; } |