diff options
author | Carl Hetherington <carl@carlh.net> | 2009-07-09 17:58:13 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2009-07-09 17:58:13 +0000 |
commit | 402cc384ced6cb152c8abe4294009fe0de0a6dea (patch) | |
tree | f01db6b412cb8e2d3c69fa123fd615c229ee47d3 /gtk2_ardour/audio_time_axis.cc | |
parent | cc351b97a986fca48a6b3b631a292bf24efc5e41 (diff) |
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
Diffstat (limited to 'gtk2_ardour/audio_time_axis.cc')
-rw-r--r-- | gtk2_ardour/audio_time_axis.cc | 46 |
1 files changed, 16 insertions, 30 deletions
diff --git a/gtk2_ardour/audio_time_axis.cc b/gtk2_ardour/audio_time_axis.cc index 5fd87a2d24..50f0df74cc 100644 --- a/gtk2_ardour/audio_time_axis.cc +++ b/gtk2_ardour/audio_time_axis.cc @@ -80,26 +80,12 @@ AudioTimeAxisView::AudioTimeAxisView (PublicEditor& ed, Session& sess, boost::sh : AxisView(sess) , RouteTimeAxisView(ed, sess, rt, canvas) { - -} - -AudioTimeAxisViewPtr -AudioTimeAxisView::create (PublicEditor& ed, Session& sess, boost::shared_ptr<Route> rt, Canvas& canvas) -{ - AudioTimeAxisViewPtr v (new AudioTimeAxisView (ed, sess, rt, canvas)); - v->init (ed, sess, rt, canvas); - return v; -} - -void -AudioTimeAxisView::init (PublicEditor& ed, Session& sess, boost::shared_ptr<Route> rt, Canvas& canvas) -{ // Make sure things are sane... assert(!is_track() || is_audio_track()); subplugin_menu.set_name ("ArdourContextMenu"); - _view = new AudioStreamView (boost::dynamic_pointer_cast<AudioTimeAxisView> (shared_from_this ())); + _view = new AudioStreamView (*this); ignore_toggle = false; @@ -260,13 +246,13 @@ AudioTimeAxisView::create_automation_child (const Evoral::Parameter& param, bool } boost::shared_ptr<AutomationTimeAxisView> - gain_track = AutomationTimeAxisView::create (_session, - _route, _route->amp(), c, - _editor, - shared_from_this (), - false, - parent_canvas, - _route->amp()->describe_parameter(param)); + gain_track(new AutomationTimeAxisView (_session, + _route, _route->amp(), c, + _editor, + *this, + false, + parent_canvas, + _route->amp()->describe_parameter(param))); add_automation_child(Evoral::Parameter(GainAutomation), gain_track, show); @@ -311,14 +297,14 @@ AudioTimeAxisView::ensure_pan_views (bool show) std::string const name = _route->panner()->describe_parameter (pan_control->parameter ()); - boost::shared_ptr<AutomationTimeAxisView> pan_track = - AutomationTimeAxisView::create (_session, - _route, _route->panner(), pan_control, - _editor, - shared_from_this (), - false, - parent_canvas, - name); + boost::shared_ptr<AutomationTimeAxisView> pan_track ( + new AutomationTimeAxisView (_session, + _route, _route->panner(), pan_control, + _editor, + *this, + false, + parent_canvas, + name)); add_automation_child (*p, pan_track, show); } |