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 | e0531f8b98b9a17126c793408048858adc39715b (patch) | |
tree | 7febdf8fc780b82b6eca74688ff61616264f5b1b /src | |
parent | 9b7bf0b6eed441b817e8dfa049f113030c49c7f0 (diff) | |
download | ingen-e0531f8b98b9a17126c793408048858adc39715b.tar.gz ingen-e0531f8b98b9a17126c793408048858adc39715b.tar.bz2 ingen-e0531f8b98b9a17126c793408048858adc39715b.zip |
Don't expose non-const references to internal canvas collections.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3634 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/PatchCanvas.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index 71facb23..4f3afe8f 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -49,7 +49,7 @@ #define LOG(s) s << "[PatchCanvas] " #define FOREACH_ITEM(iter, coll) \ - for (Items::iterator (iter) = coll.begin(); \ + for (Items::const_iterator (iter) = coll.begin(); \ (iter) != coll.end(); ++(iter)) using Ingen::Client::ClientStore; @@ -643,7 +643,7 @@ PatchCanvas::copy_selection() } } - for (SelectedConnections::iterator c = selected_connections().begin(); + for (SelectedConnections::const_iterator c = selected_connections().begin(); c != selected_connections().end(); ++c) { Connection* const connection = dynamic_cast<Connection*>(*c); if (connection) { |