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/track_selection.cc | |
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/track_selection.cc')
-rwxr-xr-x | gtk2_ardour/track_selection.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/track_selection.cc b/gtk2_ardour/track_selection.cc index d9c7f02e19..fd73d97699 100755 --- a/gtk2_ardour/track_selection.cc +++ b/gtk2_ardour/track_selection.cc @@ -3,16 +3,16 @@ using namespace std; -TrackSelection::TrackSelection (list<TimeAxisView*> const &t) - : list<TimeAxisView*> (t) +TrackSelection::TrackSelection (list<TimeAxisViewPtr> const &t) + : list<TimeAxisViewPtr> (t) { } -list<TimeAxisView*> -TrackSelection::add (list<TimeAxisView*> const & t) +list<TimeAxisViewPtr> +TrackSelection::add (list<TimeAxisViewPtr> const & t) { - list<TimeAxisView*> added; + list<TimeAxisViewPtr> added; for (TrackSelection::const_iterator i = t.begin(); i != t.end(); ++i) { if (!contains (*i)) { @@ -25,7 +25,7 @@ TrackSelection::add (list<TimeAxisView*> const & t) } bool -TrackSelection::contains (TimeAxisView const * t) const +TrackSelection::contains (TimeAxisViewConstPtr t) const { return find (begin(), end(), t) != end(); } |