X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fsurfaces%2Fmackie%2Fdevice_profile.cc;h=2b9cbd5edb2d462a933fd5d2d61cfabdd7d5db39;hb=aefa63aaa6080da53381fd3f03d3afab2cfeed45;hp=d71d6d9888ea34f2dca7ef9c2d047844504ba4cf;hpb=91fac4c96dc6210dcc056da70dc608700d7eb570;p=ardour.git diff --git a/libs/surfaces/mackie/device_profile.cc b/libs/surfaces/mackie/device_profile.cc index d71d6d9888..2b9cbd5edb 100644 --- a/libs/surfaces/mackie/device_profile.cc +++ b/libs/surfaces/mackie/device_profile.cc @@ -90,7 +90,6 @@ devprofile_filter (const string &str, void* /*arg*/) void DeviceProfile::reload_device_profiles () { - DeviceProfile dp; vector s; vector devprofiles; Searchpath spath (devprofile_search_path()); @@ -105,6 +104,7 @@ DeviceProfile::reload_device_profiles () for (vector::iterator i = devprofiles.begin(); i != devprofiles.end(); ++i) { string fullpath = *i; + DeviceProfile dp; // has to be initial every loop or info from last added. XMLTree tree; @@ -135,7 +135,7 @@ DeviceProfile::set_state (const XMLNode& node, int /* version */) } /* name is mandatory */ - + if ((child = node.child ("Name")) == 0 || (prop = child->property ("value")) == 0) { return -1; } else { @@ -157,7 +157,7 @@ DeviceProfile::set_state (const XMLNode& node, int /* version */) int id = Button::name_to_id (prop->value()); if (id < 0) { - error << string_compose ("Unknow button ID \"%1\"", prop->value()) << endmsg; + error << string_compose ("Unknown button ID \"%1\"", prop->value()) << endmsg; continue; } @@ -339,7 +339,7 @@ DeviceProfile::save () } fullpath = Glib::build_filename (fullpath, legalize_for_path (_name) + ".profile"); - + XMLTree tree; tree.set_root (&get_state());