summaryrefslogtreecommitdiff
path: root/libs/ardour/io.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2011-07-22 15:44:13 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2011-07-22 15:44:13 +0000
commit862972eaaa2232c399bb819eb1092379689d747e (patch)
treee0c1e80f9585f58df763d06b8604e8ffccc26b8b /libs/ardour/io.cc
parent1d7190b18671bf6ff33136cd157de9e6435176c6 (diff)
use std::vector::assign() in BufferSet::attach_buffers() rather than an explicit loop; minor formatting touchups
git-svn-id: svn://localhost/ardour2/branches/3.0@9912 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/io.cc')
-rw-r--r--libs/ardour/io.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/libs/ardour/io.cc b/libs/ardour/io.cc
index b8e92d3472..0d9933cb0c 100644
--- a/libs/ardour/io.cc
+++ b/libs/ardour/io.cc
@@ -311,7 +311,7 @@ IO::add_port (string destination, void* src, DataType type)
/* Create a new port */
string portname = build_legal_port_name (type);
-
+
if (_direction == Input) {
if ((our_port = _session.engine().register_input_port (type, portname)) == 0) {
error << string_compose(_("IO: cannot register input port %1"), portname) << endmsg;
@@ -327,17 +327,15 @@ IO::add_port (string destination, void* src, DataType type)
change.before = _ports.count ();
_ports.add (our_port);
}
-
+
PortCountChanged (n_ports()); /* EMIT SIGNAL */
-
- // pan_changed (src); /* EMIT SIGNAL */
change.type = IOChange::ConfigurationChanged;
change.after = _ports.count ();
changed (change, src); /* EMIT SIGNAL */
_buffers.attach_buffers (_ports);
}
- if (destination.length()) {
+ if (!destination.empty()) {
if (our_port->connect (destination)) {
return -1;
}