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/panner_manager.cc | |
parent | cb6934a189ce3940cdfa05dd5e302a8006afa83f (diff) |
Replace all use of PathScanner with equivalent functions from pbd/file_utils.h
Diffstat (limited to 'libs/ardour/panner_manager.cc')
-rw-r--r-- | libs/ardour/panner_manager.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libs/ardour/panner_manager.cc b/libs/ardour/panner_manager.cc index 2988a8ab46..c23d6b5951 100644 --- a/libs/ardour/panner_manager.cc +++ b/libs/ardour/panner_manager.cc @@ -24,7 +24,7 @@ #include "pbd/error.h" #include "pbd/compose.h" -#include "pbd/pathscanner.h" +#include "pbd/file_utils.h" #include "pbd/stl_delete.h" #include "ardour/debug.h" @@ -90,13 +90,12 @@ static bool panner_filter (const string& str, void */*arg*/) void PannerManager::discover_panners () { - PathScanner scanner; std::vector<std::string> panner_modules; std::string search_path = panner_search_path().to_string(); DEBUG_TRACE (DEBUG::Panning, string_compose (_("looking for panners in %1\n"), search_path)); - panner_modules = scanner (search_path, panner_filter, 0, false, true, 1, true); + find_files_matching_filter (panner_modules, search_path, panner_filter, 0, false, true, 1, true); for (vector<std::string>::iterator i = panner_modules.begin(); i != panner_modules.end(); ++i) { panner_discover (*i); |