From 30cb85c307b4c1273791721a782337742ade222c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 4 Oct 2006 21:45:20 +0000 Subject: Moved generic utility stuff to new library "raul". git-svn-id: http://svn.drobilla.net/lad/ingen@156 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/NodeModel.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/libs/client/NodeModel.cpp') diff --git a/src/libs/client/NodeModel.cpp b/src/libs/client/NodeModel.cpp index c5e399d2..56df1a12 100644 --- a/src/libs/client/NodeModel.cpp +++ b/src/libs/client/NodeModel.cpp @@ -22,7 +22,7 @@ namespace Ingen { namespace Client { -NodeModel::NodeModel(CountedPtr plugin, const Path& path, bool polyphonic) +NodeModel::NodeModel(SharedPtr plugin, const Path& path, bool polyphonic) : ObjectModel(path), m_polyphonic(polyphonic), m_plugin_uri(plugin->uri()), @@ -45,7 +45,7 @@ NodeModel::~NodeModel() void -NodeModel::remove_port(CountedPtr port) +NodeModel::remove_port(SharedPtr port) { m_ports.remove(port); removed_port_sig.emit(port); @@ -89,30 +89,30 @@ NodeModel::set_path(const Path& p) void -NodeModel::add_child(CountedPtr c) +NodeModel::add_child(SharedPtr c) { assert(c->parent().get() == this); - CountedPtr pm = PtrCast(c); + SharedPtr pm = PtrCast(c); assert(pm); add_port(pm); } void -NodeModel::remove_child(CountedPtr c) +NodeModel::remove_child(SharedPtr c) { assert(c->path().is_child_of(_path)); assert(c->parent().get() == this); - CountedPtr pm = PtrCast(c); + SharedPtr pm = PtrCast(c); assert(pm); remove_port(pm); } void -NodeModel::add_port(CountedPtr pm) +NodeModel::add_port(SharedPtr pm) { assert(pm); assert(pm->path().is_child_of(_path)); @@ -128,14 +128,14 @@ NodeModel::add_port(CountedPtr pm) } -CountedPtr +SharedPtr NodeModel::get_port(const string& port_name) const { assert(port_name.find("/") == string::npos); for (PortModelList::const_iterator i = m_ports.begin(); i != m_ports.end(); ++i) if ((*i)->path().name() == port_name) return (*i); - return CountedPtr(); + return SharedPtr(); } -- cgit v1.2.1