X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=libs%2Fardour%2Fpanner_manager.cc;h=c6b73b40775fbdac0ce8d58bd9ed723d600b0573;hb=cf52d6e4b40111eb04b244ec054055a4ec15dbe0;hp=2988a8ab467ed459c1e87db284c3123083454435;hpb=0e96d84079c1792523d99b6bbec5878d11f5c8e4;p=ardour.git diff --git a/libs/ardour/panner_manager.cc b/libs/ardour/panner_manager.cc index 2988a8ab46..c6b73b4077 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" @@ -32,7 +32,7 @@ #include "ardour/search_paths.h" -#include "i18n.h" +#include "pbd/i18n.h" using namespace std; using namespace ARDOUR; @@ -90,13 +90,11 @@ static bool panner_filter (const string& str, void */*arg*/) void PannerManager::discover_panners () { - PathScanner scanner; std::vector 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)); + DEBUG_TRACE (DEBUG::Panning, string_compose (_("looking for panners in %1\n"), panner_search_path().to_string())); - panner_modules = scanner (search_path, panner_filter, 0, false, true, 1, true); + find_files_matching_filter (panner_modules, panner_search_path(), panner_filter, 0, false, true, true); for (vector::iterator i = panner_modules.begin(); i != panner_modules.end(); ++i) { panner_discover (*i);