diff options
author | David Robillard <d@drobilla.net> | 2011-11-26 00:10:45 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-11-26 00:10:45 +0000 |
commit | 9b33a4a33d9cd7c344fb1c2022e9457948161bd7 (patch) | |
tree | d7b9bbea05554ac9b188f7347a58578b6302b67b /src | |
parent | 0333adc3238be90a8428cf21eb16f9f7fc567e74 (diff) | |
download | machina-9b33a4a33d9cd7c344fb1c2022e9457948161bd7.tar.gz machina-9b33a4a33d9cd7c344fb1c2022e9457948161bd7.tar.bz2 machina-9b33a4a33d9cd7c344fb1c2022e9457948161bd7.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/MachinaGUI.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<NodeView*>(*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<EdgeView*>(*c); if (ev) |