diff options
author | David Robillard <d@drobilla.net> | 2007-10-08 04:21:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-08 04:21:18 +0000 |
commit | fae7e7519afae5f42836eaaf5e317151ea9c4378 (patch) | |
tree | c935a96d005d51517052aa95a8eb42def47b09d2 /src/libs/engine/events/DisconnectionEvent.cpp | |
parent | 4675e82dae45a70ee27bf11d10aa6872485c8847 (diff) | |
download | ingen-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/DisconnectionEvent.cpp')
-rw-r--r-- | src/libs/engine/events/DisconnectionEvent.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libs/engine/events/DisconnectionEvent.cpp b/src/libs/engine/events/DisconnectionEvent.cpp index 68068821..aa686b0c 100644 --- a/src/libs/engine/events/DisconnectionEvent.cpp +++ b/src/libs/engine/events/DisconnectionEvent.cpp @@ -157,20 +157,19 @@ DisconnectionEvent::execute(ProcessContext& context) QueuedEvent::execute(context); if (_error == NO_ERROR) { - Raul::ListNode<ConnectionImpl*>* const port_connection + Patch::Connections::Node* const port_connection = _dst_input_port->remove_connection(_src_output_port); if (port_connection != NULL) { - Raul::ListNode<ConnectionImpl*>* const patch_connection + Patch::Connections::Node* const patch_connection = _patch->remove_connection(_src_port, _dst_port); assert(patch_connection); - assert((ConnectionImpl*)port_connection->elem() == patch_connection->elem()); + assert(port_connection->elem() == patch_connection->elem()); - // Clean up both the list node and the connection itself... + // Destroy list node, which will drop reference to connection itself _engine.maid()->push(port_connection); _engine.maid()->push(patch_connection); - _engine.maid()->push(port_connection->elem()); if (_patch->compiled_patch() != NULL) _engine.maid()->push(_patch->compiled_patch()); |