globally remove all trailing whitespace from ardour code base.
[ardour.git] / libs / surfaces / mackie / device_profile.cc
index 320dd49297b338a946cba6a4fd64ebdd245e7487..c4cd9bf1a8f953885e2dd2b234718ffe4dcdfa7b 100644 (file)
 
 #include "i18n.h"
 
-using namespace Mackie;
 using namespace PBD;
 using namespace ARDOUR;
+using namespace ArdourSurface;
+using namespace Mackie;
+
 using std::string;
 using std::vector;
 
@@ -88,7 +90,6 @@ devprofile_filter (const string &str, void* /*arg*/)
 void
 DeviceProfile::reload_device_profiles ()
 {
-       DeviceProfile dp;
        vector<string> s;
        vector<string> devprofiles;
        Searchpath spath (devprofile_search_path());
@@ -103,6 +104,7 @@ DeviceProfile::reload_device_profiles ()
 
        for (vector<string>::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;
 
@@ -133,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 {
@@ -155,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;
                                }