summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/events/DisconnectNodeEvent.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-08 04:21:18 +0000
committerDavid Robillard <d@drobilla.net>2007-10-08 04:21:18 +0000
commitfae7e7519afae5f42836eaaf5e317151ea9c4378 (patch)
treec935a96d005d51517052aa95a8eb42def47b09d2 /src/libs/engine/events/DisconnectNodeEvent.cpp
parent4675e82dae45a70ee27bf11d10aa6872485c8847 (diff)
downloadingen-fae7e7519afae5f42836eaaf5e317151ea9c4378.tar.gz
ingen-fae7e7519afae5f42836eaaf5e317151ea9c4378.tar.bz2
ingen-fae7e7519afae5f42836eaaf5e317151ea9c4378.zip
Fixed missing symbol in Raul.
Made Raul::List interface and uses thereof less fugly. git-svn-id: http://svn.drobilla.net/lad/ingen@845 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/engine/events/DisconnectNodeEvent.cpp')
-rw-r--r--src/libs/engine/events/DisconnectNodeEvent.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libs/engine/events/DisconnectNodeEvent.cpp b/src/libs/engine/events/DisconnectNodeEvent.cpp
index e0507b3a..723bd864 100644
--- a/src/libs/engine/events/DisconnectNodeEvent.cpp
+++ b/src/libs/engine/events/DisconnectNodeEvent.cpp
@@ -70,8 +70,6 @@ DisconnectNodeEvent::~DisconnectNodeEvent()
void
DisconnectNodeEvent::pre_process()
{
- typedef Raul::List<ConnectionImpl*>::const_iterator ConnectionListIterator;
-
if (_lookup) {
_patch = _engine.object_store()->find_patch(_node_path.parent());
@@ -90,14 +88,13 @@ DisconnectNodeEvent::pre_process()
}
}
- ConnectionImpl* c = NULL;
- for (ConnectionListIterator i = _patch->connections().begin(); i != _patch->connections().end(); ++i) {
- c = (*i);
+ for (Patch::Connections::const_iterator i = _patch->connections().begin(); i != _patch->connections().end(); ++i) {
+ const SharedPtr<ConnectionImpl> c(*i);
if ((c->src_port()->parent_node() == _node || c->dst_port()->parent_node() == _node) && !c->pending_disconnection()) {
DisconnectionEvent* ev = new DisconnectionEvent(_engine, SharedPtr<Responder>(new Responder()), _time,
c->src_port(), c->dst_port());
ev->pre_process();
- _disconnection_events.push_back(new Raul::ListNode<DisconnectionEvent*>(ev));
+ _disconnection_events.push_back(new Raul::List<DisconnectionEvent*>::Node(ev));
c->pending_disconnection(true);
}
}