diff options
author | David Robillard <d@drobilla.net> | 2006-06-14 18:23:57 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-14 18:23:57 +0000 |
commit | 5a7beed295e6c8cee627774b9ca4d2e0eff510c1 (patch) | |
tree | df080d187fc75292a163d5ab7331b15027e81154 /src/libs/client/PatchModel.cpp | |
parent | 52f5c887cf8d4149278d137684f8f1ee31231d65 (diff) | |
download | ingen-5a7beed295e6c8cee627774b9ca4d2e0eff510c1.tar.gz ingen-5a7beed295e6c8cee627774b9ca4d2e0eff510c1.tar.bz2 ingen-5a7beed295e6c8cee627774b9ca4d2e0eff510c1.zip |
Removed unused cruft from GTK client
git-svn-id: http://svn.drobilla.net/lad/grauph@37 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/PatchModel.cpp')
-rw-r--r-- | src/libs/client/PatchModel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/client/PatchModel.cpp b/src/libs/client/PatchModel.cpp index 551b3d4c..7d786301 100644 --- a/src/libs/client/PatchModel.cpp +++ b/src/libs/client/PatchModel.cpp @@ -49,12 +49,12 @@ PatchModel::set_path(const Path& new_path) } -NodeModel* +CountedPtr<NodeModel> PatchModel::get_node(const string& name) { assert(name.find("/") == string::npos); NodeModelMap::iterator i = m_nodes.find(name); - return ((i != m_nodes.end()) ? (*i).second.get() : NULL); + return ((i != m_nodes.end()) ? (*i).second : CountedPtr<NodeModel>(NULL)); } @@ -173,9 +173,9 @@ PatchModel::add_connection(CountedPtr<ConnectionModel> cm) return; } - NodeModel* src_node = get_node(cm->src_port_path().parent().name()); + NodeModel* src_node = get_node(cm->src_port_path().parent().name()).get(); PortModel* src_port = (src_node == NULL) ? NULL : src_node->get_port(cm->src_port_path().name()).get(); - NodeModel* dst_node = get_node(cm->dst_port_path().parent().name()); + NodeModel* dst_node = get_node(cm->dst_port_path().parent().name()).get(); PortModel* dst_port = (dst_node == NULL) ? NULL : dst_node->get_port(cm->dst_port_path().name()).get(); assert(src_port != NULL); |