diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2014-06-17 21:41:29 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2014-06-17 21:41:29 +1000 |
commit | 547689a0552661108806a4028960f32d1b20adf8 (patch) | |
tree | 0c1174b469b7351a4ef6515218411cffffa0a180 /libs/ardour/template_utils.cc | |
parent | cb6934a189ce3940cdfa05dd5e302a8006afa83f (diff) |
Replace all use of PathScanner with equivalent functions from pbd/file_utils.h
Diffstat (limited to 'libs/ardour/template_utils.cc')
-rw-r--r-- | libs/ardour/template_utils.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libs/ardour/template_utils.cc b/libs/ardour/template_utils.cc index 20530ca9cc..64f6ce75ab 100644 --- a/libs/ardour/template_utils.cc +++ b/libs/ardour/template_utils.cc @@ -23,7 +23,7 @@ #include <glibmm.h> #include "pbd/basename.h" -#include "pbd/pathscanner.h" +#include "pbd/file_utils.h" #include "pbd/stl_delete.h" #include "pbd/xml++.h" @@ -82,10 +82,9 @@ void find_session_templates (vector<TemplateInfo>& template_names) { vector<string> templates; - PathScanner scanner; Searchpath spath (template_search_path()); - templates = scanner (spath.to_string(), template_filter, 0, true, true); + find_files_matching_filter (templates, spath.to_string(), template_filter, 0, true, true); if (templates.empty()) { cerr << "Found nothing along " << spath.to_string() << endl; @@ -116,10 +115,9 @@ void find_route_templates (vector<TemplateInfo>& template_names) { vector<string> templates; - PathScanner scanner; Searchpath spath (route_template_search_path()); - templates = scanner (spath.to_string(), route_template_filter, 0, false, true); + find_files_matching_filter (templates, spath.to_string(), route_template_filter, 0, false, true); if (templates.empty()) { return; |