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/automation_streamview.h | |
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/automation_streamview.h')
-rw-r--r-- | gtk2_ardour/automation_streamview.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/automation_streamview.h b/gtk2_ardour/automation_streamview.h index d11de8113b..3134d82c3f 100644 --- a/gtk2_ardour/automation_streamview.h +++ b/gtk2_ardour/automation_streamview.h @@ -42,7 +42,7 @@ class AutomationRegionView; class AutomationStreamView : public StreamView { public: - AutomationStreamView (AutomationTimeAxisView& tv); + AutomationStreamView (AutomationTimeAxisViewPtr tv); ~AutomationStreamView (); void set_automation_state (ARDOUR::AutoState state); @@ -50,7 +50,7 @@ class AutomationStreamView : public StreamView void redisplay_diskstream (); inline double contents_height() const { - return (_trackview.current_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2); + return (_trackview->current_height() - TimeAxisViewItem::NAME_HIGHLIGHT_SIZE - 2); } private: @@ -65,7 +65,7 @@ class AutomationStreamView : public StreamView boost::shared_ptr<AutomationController> _controller; - AutomationTimeAxisView& _automation_view; + AutomationTimeAxisViewPtr _automation_view; }; #endif /* __ardour_automation_streamview_h__ */ |