From 105caf23daf5aed16c7ee8b904fcca2ddbd4f59f Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 23 Jun 2012 05:06:54 +0000 Subject: Use std::string instead of PBD::sys::path in pbd/search_path.h, pbd/file_utils.h and ardour/session_dir.h git-svn-id: svn://localhost/ardour2/branches/3.0@12829 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/export_profile_manager.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'libs/ardour/export_profile_manager.cc') diff --git a/libs/ardour/export_profile_manager.cc b/libs/ardour/export_profile_manager.cc index 54779cfa32..2fa0b7c76f 100644 --- a/libs/ardour/export_profile_manager.cc +++ b/libs/ardour/export_profile_manager.cc @@ -26,6 +26,7 @@ #include "pbd/enumwriter.h" #include "pbd/xml++.h" #include "pbd/convert.h" +#include "pbd/filesystem.h" #include "ardour/export_profile_manager.h" #include "ardour/export_format_specification.h" @@ -165,9 +166,9 @@ ExportProfileManager::load_preset (ExportPresetPtr preset) void ExportProfileManager::load_presets () { - vector found = find_file (string_compose (X_("*%1"),export_preset_suffix)); + vector found = find_file (string_compose (X_("*%1"),export_preset_suffix)); - for (vector::iterator it = found.begin(); it != found.end(); ++it) { + for (vector::iterator it = found.begin(); it != found.end(); ++it) { load_preset_from_disk (*it); } } @@ -300,10 +301,10 @@ ExportProfileManager::serialize_local_profile (XMLNode & root) } } -std::vector +std::vector ExportProfileManager::find_file (std::string const & pattern) { - vector found; + vector found; Glib::PatternSpec pattern_spec (pattern); find_matching_files_in_search_path (search_path, pattern_spec, found); @@ -669,9 +670,9 @@ ExportProfileManager::serialize_format (FormatStatePtr state) void ExportProfileManager::load_formats () { - vector found = find_file (string_compose ("*%1", export_format_suffix)); + vector found = find_file (string_compose ("*%1", export_format_suffix)); - for (vector::iterator it = found.begin(); it != found.end(); ++it) { + for (vector::iterator it = found.begin(); it != found.end(); ++it) { load_format_from_disk (*it); } } -- cgit v1.2.3