13
0

Replace use of PBD::sys::path in ARDOUR::find_bindings_files

git-svn-id: svn://localhost/ardour2/branches/3.0@12839 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry 2012-06-23 05:07:18 +00:00
parent 727e1faf01
commit 1d31cd008d

View File

@ -56,7 +56,7 @@
#include "pbd/fpu.h"
#include "pbd/file_utils.h"
#include "pbd/enumwriter.h"
#include "pbd/filesystem.h"
#include "pbd/basename.h"
#include "midi++/port.h"
#include "midi++/manager.h"
@ -373,10 +373,10 @@ ARDOUR::find_bindings_files (map<string,string>& files)
}
for (vector<std::string>::iterator x = found.begin(); x != found.end(); ++x) {
sys::path path(*x);
std::string path(*x);
pair<string,string> namepath;
namepath.second = path.to_string();
namepath.first = path.leaf().substr (0, path.leaf().find_first_of ('.'));
namepath.second = path;
namepath.first = PBD::basename_nosuffix (path);
files.insert (namepath);
}
}