From 5dd1d9b720993fc7813fe12fca0844f95033ff1b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 15 Aug 2012 05:24:41 +0000 Subject: Use intrusive lists to store nodes and ports in their parent patch to avoid tedious allocated list node juggling. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4700 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/events/Get.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/server/events/Get.cpp') diff --git a/src/server/events/Get.cpp b/src/server/events/Get.cpp index b826aa5d..294a15b3 100644 --- a/src/server/events/Get.cpp +++ b/src/server/events/Get.cpp @@ -109,16 +109,14 @@ send_patch(Interface* client, const PatchImpl* patch) Resource::EXTERNAL); // Send nodes - for (Raul::List::const_iterator j = patch->nodes().begin(); + for (PatchImpl::Nodes::const_iterator j = patch->nodes().begin(); j != patch->nodes().end(); ++j) { - const NodeImpl* const node = (*j); - send_node(client, node); + send_node(client, &*j); } // Send ports for (uint32_t i = 0; i < patch->num_ports_non_rt(); ++i) { - PortImpl* const port = patch->port_impl(i); - send_port(client, port); + send_port(client, patch->port_impl(i)); } // Send edges -- cgit v1.2.1