From 07e62f3988c9dce430d270a3f52a8a65d0688010 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 8 Nov 2011 15:11:01 +0000 Subject: Remove a couple of unnecessary casts. git-svn-id: svn://localhost/ardour2/branches/3.0@10496 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/graph.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'libs/ardour/graph.cc') diff --git a/libs/ardour/graph.cc b/libs/ardour/graph.cc index aea4b2cccf..8658d30828 100644 --- a/libs/ardour/graph.cc +++ b/libs/ardour/graph.cc @@ -330,11 +330,9 @@ Graph::rechain (boost::shared_ptr routelist) /* Clear things out, and make _nodes_rt[chain] a copy of routelist */ for (RouteList::iterator ri=routelist->begin(); ri!=routelist->end(); ri++) { - node_ptr_t n = boost::dynamic_pointer_cast (*ri); - - n->_init_refcount[chain] = 0; - n->_activation_set[chain].clear(); - _nodes_rt[chain].push_back(n); + (*ri)->_init_refcount[chain] = 0; + (*ri)->_activation_set[chain].clear(); + _nodes_rt[chain].push_back (*ri); } // now add refs for the connections. @@ -364,7 +362,7 @@ Graph::rechain (boost::shared_ptr routelist) } has_output = true; - (*ni)->_activation_set[chain].insert (boost::dynamic_pointer_cast (*ri) ); + (*ni)->_activation_set[chain].insert (*ri); } } -- cgit v1.2.3