diff options
Diffstat (limited to 'src/server/events')
-rw-r--r-- | src/server/events/Connect.cpp | 4 | ||||
-rw-r--r-- | src/server/events/CreatePort.cpp | 1 | ||||
-rw-r--r-- | src/server/events/Disconnect.cpp | 12 |
3 files changed, 8 insertions, 9 deletions
diff --git a/src/server/events/Connect.cpp b/src/server/events/Connect.cpp index da7aa593..39438d43 100644 --- a/src/server/events/Connect.cpp +++ b/src/server/events/Connect.cpp @@ -141,8 +141,8 @@ Connect::pre_process() provider... */ if (src_node != dst_node && src_node->parent() == dst_node->parent()) { - dst_node->providers()->push_back(new Raul::List<NodeImpl*>::Node(src_node)); - src_node->dependants()->push_back(new Raul::List<NodeImpl*>::Node(dst_node)); + dst_node->providers().push_back(src_node); + src_node->dependants().push_back(dst_node); } _patch->add_connection(_connection); diff --git a/src/server/events/CreatePort.cpp b/src/server/events/CreatePort.cpp index c6d7c296..84a8e2d3 100644 --- a/src/server/events/CreatePort.cpp +++ b/src/server/events/CreatePort.cpp @@ -17,7 +17,6 @@ #include "raul/Array.hpp" #include "raul/Atom.hpp" -#include "raul/List.hpp" #include "raul/Maid.hpp" #include "raul/Path.hpp" #include "shared/LV2URIMap.hpp" diff --git a/src/server/events/Disconnect.cpp b/src/server/events/Disconnect.cpp index de078c3f..c55ae1ae 100644 --- a/src/server/events/Disconnect.cpp +++ b/src/server/events/Disconnect.cpp @@ -75,18 +75,18 @@ Disconnect::Impl::Impl(Engine& e, NodeImpl* const src_node = _src_output_port->parent_node(); NodeImpl* const dst_node = _dst_input_port->parent_node(); - for (Raul::List<NodeImpl*>::iterator i = dst_node->providers()->begin(); - i != dst_node->providers()->end(); ++i) { + for (std::list<NodeImpl*>::iterator i = dst_node->providers().begin(); + i != dst_node->providers().end(); ++i) { if ((*i) == src_node) { - delete dst_node->providers()->erase(i); + dst_node->providers().erase(i); break; } } - for (Raul::List<NodeImpl*>::iterator i = src_node->dependants()->begin(); - i != src_node->dependants()->end(); ++i) { + for (std::list<NodeImpl*>::iterator i = src_node->dependants().begin(); + i != src_node->dependants().end(); ++i) { if ((*i) == dst_node) { - delete src_node->dependants()->erase(i); + src_node->dependants().erase(i); break; } } |