diff options
author | Robin Gareus <robin@gareus.org> | 2020-02-25 04:15:30 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-02-25 16:16:59 +0100 |
commit | 8e1a2d7caa4f465a64834e553f1f3d7c52f6aea0 (patch) | |
tree | 7ef91b3378767ca38c62da5f6e30f272c96ea662 /libs/ardour/session_state.cc | |
parent | 7e4728027c7b0a4ee6b4072a0088ea7a17d99cc4 (diff) |
Prefer const iterators
Diffstat (limited to 'libs/ardour/session_state.cc')
-rw-r--r-- | libs/ardour/session_state.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 5ffe951cfc..395329195e 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -2335,7 +2335,7 @@ Session::get_sources_as_xml () XMLNode* node = new XMLNode (X_("Sources")); Glib::Threads::Mutex::Lock lm (source_lock); - for (SourceMap::iterator i = sources.begin(); i != sources.end(); ++i) { + for (SourceMap::const_iterator i = sources.begin(); i != sources.end(); ++i) { node->add_child_nocopy (i->second->get_state()); } |