13
0

Use a const iterator for sorted RouteList in Session::state

This commit is contained in:
Tim Mayberry 2017-04-26 17:33:55 +10:00
parent 3589740d69
commit 4b4d64dd7f

View File

@ -1341,7 +1341,7 @@ Session::state (bool full_state)
RouteList xml_node_order (*r);
xml_node_order.sort (cmp);
for (RouteList::iterator i = xml_node_order.begin(); i != xml_node_order.end(); ++i) {
for (RouteList::const_iterator i = xml_node_order.begin(); i != xml_node_order.end(); ++i) {
if (!(*i)->is_auditioner()) {
if (full_state) {
child->add_child_nocopy ((*i)->get_state());