summaryrefslogtreecommitdiff
path: root/libs/ardour
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-10-28 09:46:59 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-10-28 09:46:59 -0400
commit7fec9910775f6ecb2ec15c145846086edf5a1df5 (patch)
tree1b0b391393483fe549b6e218b66fc66dfe0c44af /libs/ardour
parentfe14092d57a137bc6613046062f74307d05f709a (diff)
fix thinko in declaration of ARDOUR::PortEngine::get_port_by_name()
Diffstat (limited to 'libs/ardour')
-rw-r--r--libs/ardour/ardour/port_engine.h5
-rw-r--r--libs/ardour/audioengine.cc4
2 files changed, 5 insertions, 4 deletions
diff --git a/libs/ardour/ardour/port_engine.h b/libs/ardour/ardour/port_engine.h
index 8c0ec9e754..68f8fe1232 100644
--- a/libs/ardour/ardour/port_engine.h
+++ b/libs/ardour/ardour/port_engine.h
@@ -117,10 +117,11 @@ class PortEngine {
* does not exist, return an empty string.
*/
virtual std::string get_port_name (PortHandle) const = 0;
+
/** Return a reference to a port with the fullname @param name. Return
- * a null pointer if no such port exists.
+ * an "empty" PortHandle (analogous to a null pointer) if no such port exists.
*/
- virtual PortHandle* get_port_by_name (const std::string&) const = 0;
+ virtual PortHandle get_port_by_name (const std::string&) const = 0;
/** Find the set of ports whose names, types and flags match
* specified values, place the names of each port into @param ports,
diff --git a/libs/ardour/audioengine.cc b/libs/ardour/audioengine.cc
index 45b8bbf757..7f4d3c2a1d 100644
--- a/libs/ardour/audioengine.cc
+++ b/libs/ardour/audioengine.cc
@@ -1065,8 +1065,8 @@ AudioEngine::start_latency_detection ()
/* find the ports we will connect to */
- PortEngine::PortHandle* out = pe.get_port_by_name (_latency_output_name);
- PortEngine::PortHandle* in = pe.get_port_by_name (_latency_input_name);
+ PortEngine::PortHandle out = pe.get_port_by_name (_latency_output_name);
+ PortEngine::PortHandle in = pe.get_port_by_name (_latency_input_name);
if (!out || !in) {
stop (true);