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_region_view.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_region_view.h')
-rw-r--r-- | gtk2_ardour/automation_region_view.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/automation_region_view.h b/gtk2_ardour/automation_region_view.h index e6531821d3..55c1b77d64 100644 --- a/gtk2_ardour/automation_region_view.h +++ b/gtk2_ardour/automation_region_view.h @@ -40,7 +40,7 @@ class AutomationRegionView : public RegionView { public: AutomationRegionView(ArdourCanvas::Group*, - AutomationTimeAxisView&, + AutomationTimeAxisViewPtr, boost::shared_ptr<ARDOUR::Region>, const Evoral::Parameter& parameter, boost::shared_ptr<ARDOUR::AutomationList>, @@ -51,14 +51,15 @@ public: void init (Gdk::Color const & basic_color, bool wfd); - inline AutomationTimeAxisView* automation_view() const - { return dynamic_cast<AutomationTimeAxisView*>(&trackview); } + inline AutomationTimeAxisViewPtr automation_view() const { + return boost::dynamic_pointer_cast<AutomationTimeAxisView> (trackview); + } void set_line(boost::shared_ptr<AutomationLine> line) { _line = line; } boost::shared_ptr<AutomationLine> line() { return _line; } // We are a ghost. Meta ghosts? Crazy talk. - virtual GhostRegion* add_ghost(TimeAxisView&) { return NULL; } + virtual GhostRegion* add_ghost(TimeAxisViewPtr) { return 0; } void set_height (double); void reset_width_dependent_items(double pixel_width); |