X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Ftemplate_utils.cc;h=aa0a583af4d982771658c92786720ad4108e2448;hb=1c1b359ff21aac57bd71d291049d657f66cf31f5;hp=a0daca713d5356afb17f531da135b1c2e18765b1;hpb=b65f8073ba306ac2d85133875746767e7c6b0eb6;p=ardour.git diff --git a/libs/ardour/template_utils.cc b/libs/ardour/template_utils.cc index a0daca713d..aa0a583af4 100644 --- a/libs/ardour/template_utils.cc +++ b/libs/ardour/template_utils.cc @@ -80,14 +80,14 @@ find_session_templates (vector& template_names) spath += user_template_directory (); templates = scanner (spath.to_string(), template_filter, 0, false, true); - + if (!templates) { cerr << "Found nothing along " << spath.to_string() << endl; return; } cerr << "Found " << templates->size() << " along " << spath.to_string() << endl; - + for (vector::iterator i = templates->begin(); i != templates->end(); ++i) { string fullpath = *(*i); @@ -117,11 +117,11 @@ find_route_templates (vector& template_names) spath += user_route_template_directory (); templates = scanner (spath.to_string(), template_filter, 0, false, true); - + if (!templates) { return; } - + for (vector::iterator i = templates->begin(); i != templates->end(); ++i) { string fullpath = *(*i); @@ -132,7 +132,7 @@ find_route_templates (vector& template_names) } XMLNode* root = tree.root(); - + TemplateInfo rti; rti.name = IO::name_from_state (*root->children().front());