From 2d5b1ab4aa76bb4bcbc2ae98c3a353274096e7bb Mon Sep 17 00:00:00 2001 From: Sampo Savolainen Date: Thu, 27 Jul 2006 22:16:35 +0000 Subject: [PATCH] shared_ptr fixes git-svn-id: svn://localhost/ardour2/trunk@709 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/analysis_window.cc | 4 ++-- libs/surfaces/tranzport/tranzport_control_protocol.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/analysis_window.cc b/gtk2_ardour/analysis_window.cc index 8370690116..8809c84e7a 100644 --- a/gtk2_ardour/analysis_window.cc +++ b/gtk2_ardour/analysis_window.cc @@ -236,7 +236,7 @@ AnalysisWindow::analyze_data (Gtk::Button *button) if (!pl || !rui) continue; - FFTResult *res = fft_graph.prepareResult(rui->color(), rui->route().name()); + FFTResult *res = fft_graph.prepareResult(rui->color(), rui->route()->name()); // if timeSelection if (source_selection_ranges_rb.get_active()) { @@ -312,7 +312,7 @@ AnalysisWindow::analyze_data (Gtk::Button *button) Gtk::TreeModel::Row newrow = *(tlmodel)->append(); - newrow[tlcols.trackname] = rui->route().name(); + newrow[tlcols.trackname] = rui->route()->name(); newrow[tlcols.visible] = true; newrow[tlcols.color] = rui->color(); newrow[tlcols.graph] = res; diff --git a/libs/surfaces/tranzport/tranzport_control_protocol.cc b/libs/surfaces/tranzport/tranzport_control_protocol.cc index 1fe9b7231a..426c837b2f 100644 --- a/libs/surfaces/tranzport/tranzport_control_protocol.cc +++ b/libs/surfaces/tranzport/tranzport_control_protocol.cc @@ -693,7 +693,7 @@ TranzportControlProtocol::update_state () /* per track */ if (route_table[0]) { - AudioTrack* at = dynamic_cast (route_table[0]); + boost::shared_ptr at = boost::dynamic_pointer_cast (route_table[0]); if (at && at->record_enabled()) { pending_lights[LightTrackrec] = true; } else {