fix clang compilation (include header ordering)
[ardour.git] / libs / ardour / template_utils.cc
index 5c6fd9c833e2fe4614b2138dad73cf7cd5eee470..f6b6c59fbce1967c74046c0677082a8802e937ea 100644 (file)
@@ -110,15 +110,15 @@ find_session_templates (vector<TemplateInfo>& template_names, bool read_xml)
 
                        XMLNode* root = tree.root();
                        
-                       rti.created_with = _("(unknown)");
+                       rti.modified_with = _("(unknown)");
                        try {
                                XMLNode *pv = root->child("ProgramVersion");
-                               string created_with;
+                               string modified_with;
                                if (pv != 0) {
-                                       pv->get_property (X_("created-with"), created_with);
+                                       pv->get_property (X_("modified-with"), modified_with);
                                }
-                               rti.created_with = created_with;
-                       } catch ( LIBPBD_API::XMLException &e) {}
+                               rti.modified_with = modified_with;
+                       } catch (XMLException &e) {}
 
                        rti.description = _("No Description");
                        try {
@@ -126,7 +126,7 @@ find_session_templates (vector<TemplateInfo>& template_names, bool read_xml)
                                if (desc != 0) {
                                        rti.description = desc->attribute_value();
                                }
-                       } catch ( LIBPBD_API::XMLException &e) {}
+                       } catch (XMLException &e) {}
                }
 
                template_names.push_back (rti);
@@ -158,15 +158,15 @@ find_route_templates (vector<TemplateInfo>& template_names)
 
                TemplateInfo rti;
 
-               rti.created_with = _("(unknown)");
+               rti.modified_with = _("(unknown)");
                try {
                        XMLNode *pv = root->child("ProgramVersion");
-                       string created_with;
+                       string modified_with;
                        if (pv != 0) {
-                               pv->get_property (X_("created-with"), created_with);
+                               pv->get_property (X_("modified-with"), modified_with);
                        }
-                       rti.created_with = created_with;
-               } catch ( LIBPBD_API::XMLException &e) {}
+                       rti.modified_with = modified_with;
+               } catch (XMLException &e) {}
 
                rti.description = _("No Description");
                try {
@@ -174,7 +174,7 @@ find_route_templates (vector<TemplateInfo>& template_names)
                        if (desc != 0) {
                                rti.description = desc->attribute_value();
                        }
-               } catch ( LIBPBD_API::XMLException &e) {}
+               } catch (XMLException &e) {}
 
                rti.name = IO::name_from_state (*root->children().front());
                rti.path = fullpath;