diff options
author | Carl Hetherington <carl@carlh.net> | 2009-07-09 13:39:45 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-07-09 13:39:45 +0000 |
commit | 4297071b3f7360b17d81ef9cf36b8d75d46d2818 (patch) | |
tree | 13cbb169cfcf79a2e845d8860f0f98e192f3a8d3 /gtk2_ardour/editor_route_groups.cc | |
parent | 0f8031da06e131595b3625169f9687c1a1ab2f3a (diff) |
Use shared_ptr for the TimeAxisView hierarchy.
git-svn-id: svn://localhost/ardour2/branches/3.0@5339 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_route_groups.cc')
-rw-r--r-- | gtk2_ardour/editor_route_groups.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/editor_route_groups.cc b/gtk2_ardour/editor_route_groups.cc index b459168dcb..89c87ee32f 100644 --- a/gtk2_ardour/editor_route_groups.cc +++ b/gtk2_ardour/editor_route_groups.cc @@ -267,7 +267,7 @@ EditorRouteGroups::new_from_selection () _session->add_route_group (g); for (TrackSelection::iterator i = _editor->get_selection().tracks.begin(); i != _editor->get_selection().tracks.end(); ++i) { - RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (*i); + RouteTimeAxisViewPtr rtv = boost::dynamic_pointer_cast<RouteTimeAxisView> (*i); if (rtv) { rtv->route()->set_route_group (g, this); } @@ -295,7 +295,7 @@ EditorRouteGroups::new_from_rec_enabled () _session->add_route_group (g); for (Editor::TrackViewList::const_iterator i = _editor->get_track_views().begin(); i != _editor->get_track_views().end(); ++i) { - RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (*i); + RouteTimeAxisViewPtr rtv = boost::dynamic_pointer_cast<RouteTimeAxisView> (*i); if (rtv && rtv->route()->record_enabled()) { rtv->route()->set_route_group (g, this); } @@ -323,7 +323,7 @@ EditorRouteGroups::new_from_soloed () _session->add_route_group (g); for (Editor::TrackViewList::const_iterator i = _editor->get_track_views().begin(); i != _editor->get_track_views().end(); ++i) { - RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (*i); + RouteTimeAxisViewPtr rtv = boost::dynamic_pointer_cast<RouteTimeAxisView> (*i); if (rtv && !rtv->route()->is_master() && rtv->route()->soloed()) { rtv->route()->set_route_group (g, this); } @@ -517,13 +517,13 @@ EditorRouteGroups::row_change (const Gtk::TreeModel::Path& path,const Gtk::TreeM if ((*iter)[_columns.is_visible]) { for (Editor::TrackViewList::const_iterator j = _editor->get_track_views().begin(); j != _editor->get_track_views().end(); ++j) { if ((*j)->route_group() == group) { - _editor->_routes->show_track_in_display (**j); + _editor->_routes->show_track_in_display (*j); } } } else { for (Editor::TrackViewList::const_iterator j = _editor->get_track_views().begin(); j != _editor->get_track_views().end(); ++j) { if ((*j)->route_group() == group) { - _editor->hide_track_in_display (**j); + _editor->hide_track_in_display (*j); } } } @@ -682,7 +682,7 @@ EditorRouteGroups::collect (RouteGroup* g) int coll = -1; while (i != routes.end() && j != _editor->get_track_views().end()) { - RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (*j); + RouteTimeAxisViewPtr rtv = boost::dynamic_pointer_cast<RouteTimeAxisView> (*j); if (rtv) { boost::shared_ptr<Route> r = rtv->route (); |