From 92a1d3619bfc94e649fbbc4b4cd12c3c89978d6b Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 19 Jul 2017 20:35:17 +0200 Subject: [PATCH] Const'ness where const'ness is due --- gtk2_ardour/time_axis_view.cc | 4 ++-- gtk2_ardour/time_axis_view.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/time_axis_view.cc b/gtk2_ardour/time_axis_view.cc index dbaaf0268d..58c9d44bc5 100644 --- a/gtk2_ardour/time_axis_view.cc +++ b/gtk2_ardour/time_axis_view.cc @@ -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); } diff --git a/gtk2_ardour/time_axis_view.h b/gtk2_ardour/time_axis_view.h index 7a06c26a64..0b3c6ea722 100644 --- a/gtk2_ardour/time_axis_view.h +++ b/gtk2_ardour/time_axis_view.h @@ -216,7 +216,7 @@ class TimeAxisView : public virtual AxisView virtual StreamView* view () const { return 0; } typedef std::vector > Children; - Children get_child_list (); + Children get_child_list () const; static uint32_t preset_height (Height); -- 2.30.2