From 9b33a4a33d9cd7c344fb1c2022e9457948161bd7 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 26 Nov 2011 00:10:45 +0000 Subject: Don't expose non-const references to internal canvas collections. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@3634 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/MachinaGUI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui') diff --git a/src/gui/MachinaGUI.cpp b/src/gui/MachinaGUI.cpp index 6763ec0..a11fe5e 100644 --- a/src/gui/MachinaGUI.cpp +++ b/src/gui/MachinaGUI.cpp @@ -599,14 +599,14 @@ MachinaGUI::show_labels_toggled() { const bool show = _menu_view_labels->get_active(); - for (Canvas::Items::iterator i = _canvas->items().begin(); + for (Canvas::Items::const_iterator i = _canvas->items().begin(); i != _canvas->items().end(); ++i) { NodeView* const nv = dynamic_cast(*i); if (nv) nv->show_label(show); } - for (Canvas::Connections::iterator c = _canvas->connections().begin(); + for (Canvas::Connections::const_iterator c = _canvas->connections().begin(); c != _canvas->connections().end(); ++c) { EdgeView* const ev = dynamic_cast(*c); if (ev) -- cgit v1.2.1