debug flag for session destruction and waf option for boost SP debug
[ardour.git] / libs / ardour / rc_configuration.cc
index f613ae1ecc241ef2ae0858e4ce1ae863b9fd8822..e1876227572c0d3d1886fb7fce1b5fdfd561e57b 100644 (file)
@@ -200,11 +200,10 @@ RCConfiguration::get_state ()
 
        root = new XMLNode("Ardour");
 
-       MIDI::Manager::PortMap::const_iterator i;
-       const MIDI::Manager::PortMap& ports = MIDI::Manager::instance()->get_midi_ports();
+       const MIDI::Manager::PortList& ports = MIDI::Manager::instance()->get_midi_ports();
 
-       for (i = ports.begin(); i != ports.end(); ++i) {
-               root->add_child_nocopy(i->second->get_state());
+       for (MIDI::Manager::PortList::const_iterator i = ports.begin(); i != ports.end(); ++i) {
+               root->add_child_nocopy((*i)->get_state());
        }
 
        root->add_child_nocopy (get_variables ());