Use shared_ptr for the TimeAxisView hierarchy.
[ardour.git] / gtk2_ardour / track_selection.cc
index d9c7f02e19b00ceabff2539a0666113ce24a0fac..fd73d97699ace927965f58823d27bd5d6c28ddc6 100755 (executable)
@@ -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();
 }