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/analysis_window.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/analysis_window.cc')
-rw-r--r-- | gtk2_ardour/analysis_window.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/analysis_window.cc b/gtk2_ardour/analysis_window.cc index ed2b90b34f..d79e51e70e 100644 --- a/gtk2_ardour/analysis_window.cc +++ b/gtk2_ardour/analysis_window.cc @@ -261,7 +261,7 @@ AnalysisWindow::analyze_data (Gtk::Button *button) if (!pl) continue; - RouteUI *rui = dynamic_cast<RouteUI *>(*i); + boost::shared_ptr<RouteUI> rui = boost::dynamic_pointer_cast<RouteUI>(*i); int n_inputs = rui->route()->n_inputs().n_audio(); // FFT is audio only // Busses don't have playlists, so we need to check that we actually are working with a playlist @@ -306,7 +306,7 @@ AnalysisWindow::analyze_data (Gtk::Button *button) } else if (source_selection_regions_rb.get_active()) { // cerr << "Analyzing selected regions on track " << *&rui->route().name() << endl; - TimeAxisView *current_axis = (*i); + TimeAxisViewPtr current_axis = (*i); for (RegionSelection::iterator j = ars.begin(); j != ars.end(); ++j) { // Check that the region is actually audio (so we can analyze it) @@ -315,7 +315,7 @@ AnalysisWindow::analyze_data (Gtk::Button *button) continue; // Check that the region really is selected on _this_ track/solo - if ( &arv->get_time_axis_view() != current_axis) + if (arv->get_time_axis_view() != current_axis) continue; // cerr << " - " << (*j)->region().name() << ": " << (*j)->region().length() << " samples starting at " << (*j)->region().position() << endl; |