diff options
author | Robin Gareus <robin@gareus.org> | 2017-10-29 18:36:32 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-10-29 20:04:09 +0100 |
commit | 4f03b7c1012359c33161f62f3cddf860374be547 (patch) | |
tree | 80f4f5fcc3bce78c70aced79e004637022e98296 /libs/ardour/port_manager.cc | |
parent | bc18c54c737fee6c19ea69b45faaae6f75e3ec24 (diff) |
NO-OP: whitespace
Diffstat (limited to 'libs/ardour/port_manager.cc')
-rw-r--r-- | libs/ardour/port_manager.cc | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/libs/ardour/port_manager.cc b/libs/ardour/port_manager.cc index 6d3336cabb..1ef7ca1d8b 100644 --- a/libs/ardour/port_manager.cc +++ b/libs/ardour/port_manager.cc @@ -166,11 +166,11 @@ PortManager::port_is_mine (const string& portname) const if (portname.find_first_of (':') != string::npos) { if (portname.substr (0, self.length ()) != self) { - return false; - } - } + return false; + } + } - return true; + return true; } bool @@ -270,7 +270,6 @@ PortManager::n_physical_inputs () const /** @param name Full or short name of port * @return Corresponding Port or 0. */ - boost::shared_ptr<Port> PortManager::get_port_by_name (const string& portname) { @@ -278,10 +277,10 @@ PortManager::get_port_by_name (const string& portname) return boost::shared_ptr<Port>(); } - if (!port_is_mine (portname)) { - /* not an ardour port */ - return boost::shared_ptr<Port> (); - } + if (!port_is_mine (portname)) { + /* not an ardour port */ + return boost::shared_ptr<Port> (); + } boost::shared_ptr<Ports> pr = ports.reader(); std::string rel = make_port_name_relative (portname); @@ -289,10 +288,10 @@ PortManager::get_port_by_name (const string& portname) if (x != pr->end()) { /* its possible that the port was renamed by some 3rd party and - we don't know about it. check for this (the check is quick - and cheap), and if so, rename the port (which will alter - the port map as a side effect). - */ + * we don't know about it. check for this (the check is quick + * and cheap), and if so, rename the port (which will alter + * the port map as a side effect). + */ const std::string check = make_port_name_relative (_backend->get_port_name (x->second->port_handle())); if (check != rel) { x->second->set_name (check); @@ -300,7 +299,7 @@ PortManager::get_port_by_name (const string& portname) return x->second; } - return boost::shared_ptr<Port> (); + return boost::shared_ptr<Port> (); } void |