Remove a couple of unnecessary casts.
authorCarl Hetherington <carl@carlh.net>
Tue, 8 Nov 2011 15:11:01 +0000 (15:11 +0000)
committerCarl Hetherington <carl@carlh.net>
Tue, 8 Nov 2011 15:11:01 +0000 (15:11 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@10496 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/graph.cc

index aea4b2cccf1ebb64143e64b30446b741db729c56..8658d308282b6a1df5f252aa6aedd22bef77a45f 100644 (file)
@@ -330,11 +330,9 @@ Graph::rechain (boost::shared_ptr<RouteList> 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<GraphNode> (*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> routelist)
                                 }
 
                                 has_output = true;
-                                (*ni)->_activation_set[chain].insert (boost::dynamic_pointer_cast<GraphNode> (*ri) );
+                                (*ni)->_activation_set[chain].insert (*ri);
                         }
                 }