summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-27 06:33:35 +0000
committerDavid Robillard <d@drobilla.net>2011-11-27 06:33:35 +0000
commit8c8f2c1eadc44d1b34fea6eb2c87a9c3e0208330 (patch)
treeeffd0d43886facaf09a65f70eb433ea7e95a0436 /src
parent96374990f67d8234f38b6cc6044b05d13157d88a (diff)
downloadingen-8c8f2c1eadc44d1b34fea6eb2c87a9c3e0208330.tar.gz
ingen-8c8f2c1eadc44d1b34fea6eb2c87a9c3e0208330.tar.bz2
ingen-8c8f2c1eadc44d1b34fea6eb2c87a9c3e0208330.zip
Remove linear searching for connections.
Remove redundant connection lists stored in Connectable. Add arrange and straight connections options to flowcanvas_bench. Add Connection::set_curved(). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3652 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r--src/gui/App.cpp9
-rw-r--r--src/gui/Connection.cpp2
2 files changed, 1 insertions, 10 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp
index c3fedd17..a4f9508d 100644
--- a/src/gui/App.cpp
+++ b/src/gui/App.cpp
@@ -241,15 +241,6 @@ App::port_activity(Port* port)
if (inserted.second)
inserted.first->second = false;
- if (port->is_output()) {
- for (Port::Connections::const_iterator i = port->connections().begin();
- i != port->connections().end(); ++i) {
- Port* const dst = dynamic_cast<Port*>((*i)->dest());
- if (dst)
- port_activity(dst);
- }
- }
-
port->set_highlighted(true, false, true, false);
}
diff --git a/src/gui/Connection.cpp b/src/gui/Connection.cpp
index 511f6044..6f24b124 100644
--- a/src/gui/Connection.cpp
+++ b/src/gui/Connection.cpp
@@ -35,7 +35,7 @@ Connection::Connection(FlowCanvas::Canvas& canvas,
{
Port* const src_port = dynamic_cast<Port*>(src);
if (src_port)
- _bpath.property_dash() = src_port->dash();
+ _bpath->property_dash() = src_port->dash();
}
} // namespace GUI