mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 13:46:30 +01:00
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
This commit is contained in:
parent
22e478e7fc
commit
105caf23da
54 changed files with 255 additions and 309 deletions
|
|
@ -29,6 +29,7 @@
|
|||
#include <algorithm>
|
||||
|
||||
#include <glibmm/fileutils.h>
|
||||
#include <glibmm/miscutils.h>
|
||||
|
||||
#include "pbd/xml++.h"
|
||||
#include "pbd/pthread_utils.h"
|
||||
|
|
@ -339,8 +340,7 @@ MidiSource::clone (const string& path, Evoral::MusicalTime begin, Evoral::Musica
|
|||
|
||||
do {
|
||||
newname = bump_name_once (newname, '-');
|
||||
/* XXX build path safely */
|
||||
newpath = _session.session_directory().midi_path().to_string() +"/"+ newname + ".mid";
|
||||
newpath = Glib::build_filename (_session.session_directory().midi_path(), newname + ".mid");
|
||||
|
||||
} while (Glib::file_test (newpath, Glib::FILE_TEST_EXISTS));
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue