Const'ness where const'ness is due
authorRobin Gareus <robin@gareus.org>
Wed, 19 Jul 2017 18:35:17 +0000 (20:35 +0200)
committerRobin Gareus <robin@gareus.org>
Wed, 19 Jul 2017 20:15:22 +0000 (22:15 +0200)
gtk2_ardour/time_axis_view.cc
gtk2_ardour/time_axis_view.h

index dbaaf0268d4648e53ed42c126c5cb608e4fdc9b0..58c9d44bc52c99302b613ba325dc111d687561c9 100644 (file)
@@ -1272,11 +1272,11 @@ TimeAxisView::preset_height (Height h)
 
 /** @return Child time axis views that are not hidden */
 TimeAxisView::Children
-TimeAxisView::get_child_list ()
+TimeAxisView::get_child_list () const
 {
        Children c;
 
-       for (Children::iterator i = children.begin(); i != children.end(); ++i) {
+       for (Children::const_iterator i = children.begin(); i != children.end(); ++i) {
                if (!(*i)->hidden()) {
                        c.push_back(*i);
                }
index 7a06c26a6498fe2515a1209142b7e3aae39e8bbd..0b3c6ea722482f43c9ee45416b60818a8addbbe3 100644 (file)
@@ -216,7 +216,7 @@ class TimeAxisView : public virtual AxisView
        virtual StreamView* view () const { return 0; }
 
        typedef std::vector<boost::shared_ptr<TimeAxisView> > Children;
-       Children get_child_list ();
+       Children get_child_list () const;
 
        static uint32_t preset_height (Height);