Another not-quite-there-but-better commit.
[ardour.git] / gtk2_ardour / time_axis_view.h
index c4f86dee5dda893bb2a863634f48f25ab4536929..722350594a1c7a46f48dd540e289c87d7fd7da33 100644 (file)
@@ -209,6 +209,8 @@ class TimeAxisView : public virtual AxisView
        /* call this on the parent */
 
        virtual XMLNode* get_child_xml_node (const string & childname) { return 0; }
+       
+       typedef std::vector<boost::shared_ptr<TimeAxisView> > Children;
 
   protected:
 
@@ -279,11 +281,11 @@ class TimeAxisView : public virtual AxisView
        /** Find the parent with state */
        TimeAxisView* get_parent_with_state();
 
-       std::vector<TimeAxisView*> children;
+       Children children;
        bool is_child (TimeAxisView*);
 
-       void remove_child (TimeAxisView*);
-       void add_child (TimeAxisView*);
+       void remove_child (boost::shared_ptr<TimeAxisView>);
+       void add_child (boost::shared_ptr<TimeAxisView>);
 
        /* selection display */