enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
[ardour.git] / libs / ardour / panner_manager.cc
index c23d6b5951986cc41cda9817a686fd4fc6bb201d..c6b73b40775fbdac0ce8d58bd9ed723d600b0573 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "ardour/search_paths.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace ARDOUR;
@@ -91,11 +91,10 @@ void
 PannerManager::discover_panners ()
 {
        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));
+       DEBUG_TRACE (DEBUG::Panning, string_compose (_("looking for panners in %1\n"), panner_search_path().to_string()));
 
-       find_files_matching_filter (panner_modules, 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<std::string>::iterator i = panner_modules.begin(); i != panner_modules.end(); ++i) {
                panner_discover (*i);