summaryrefslogtreecommitdiff
path: root/libs/ardour/export_profile_manager.cc
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2012-06-23 05:06:54 +0000
committerTim Mayberry <mojofunk@gmail.com>2012-06-23 05:06:54 +0000
commit105caf23daf5aed16c7ee8b904fcca2ddbd4f59f (patch)
tree4d74f6c8722790e6fb9d58888ea225866fc98d3c /libs/ardour/export_profile_manager.cc
parent22e478e7fc4952dd386391e85d8e7fa2491ae953 (diff)
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
Diffstat (limited to 'libs/ardour/export_profile_manager.cc')
-rw-r--r--libs/ardour/export_profile_manager.cc13
1 files changed, 7 insertions, 6 deletions
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<sys::path> found = find_file (string_compose (X_("*%1"),export_preset_suffix));
+ vector<std::string> found = find_file (string_compose (X_("*%1"),export_preset_suffix));
- for (vector<sys::path>::iterator it = found.begin(); it != found.end(); ++it) {
+ for (vector<std::string>::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<sys::path>
+std::vector<std::string>
ExportProfileManager::find_file (std::string const & pattern)
{
- vector<sys::path> found;
+ vector<std::string> 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<sys::path> found = find_file (string_compose ("*%1", export_format_suffix));
+ vector<std::string> found = find_file (string_compose ("*%1", export_format_suffix));
- for (vector<sys::path>::iterator it = found.begin(); it != found.end(); ++it) {
+ for (vector<std::string>::iterator it = found.begin(); it != found.end(); ++it) {
load_format_from_disk (*it);
}
}