mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 05:35:47 +01:00
Back out big shared_ptr change. Moving to a branch. Apologies all.
git-svn-id: svn://localhost/ardour2/branches/3.0@5343 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
cc351b97a9
commit
402cc384ce
71 changed files with 881 additions and 1105 deletions
|
|
@ -70,10 +70,9 @@ Editor::time_stretch (RegionSelection& regions, float fraction)
|
|||
return time_fx (regions, fraction, false);
|
||||
} else {
|
||||
// MIDI, just stretch
|
||||
RouteTimeAxisViewPtr rtv = boost::dynamic_pointer_cast<RouteTimeAxisView> (regions.front()->get_time_axis_view());
|
||||
if (!rtv) {
|
||||
RouteTimeAxisView* rtv = dynamic_cast<RouteTimeAxisView*> (®ions.front()->get_time_axis_view());
|
||||
if (!rtv)
|
||||
return -1;
|
||||
}
|
||||
|
||||
boost::shared_ptr<Playlist> playlist
|
||||
= rtv->track()->diskstream()->playlist();
|
||||
|
|
@ -263,14 +262,14 @@ Editor::do_timefx (TimeFXDialog& dialog)
|
|||
}
|
||||
|
||||
boost::shared_ptr<AudioRegion> region (arv->audio_region());
|
||||
TimeAxisViewPtr tv = arv->get_time_axis_view();
|
||||
RouteTimeAxisViewPtr rtv;
|
||||
TimeAxisView* tv = &(arv->get_time_axis_view());
|
||||
RouteTimeAxisView* rtv;
|
||||
RegionSelection::iterator tmp;
|
||||
|
||||
tmp = i;
|
||||
++tmp;
|
||||
|
||||
if ((rtv = boost::dynamic_pointer_cast<RouteTimeAxisView> (tv)) == 0) {
|
||||
if ((rtv = dynamic_cast<RouteTimeAxisView*> (tv)) == 0) {
|
||||
i = tmp;
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue