remove Glib::ustring from libardour; allow any characters except '/' and '\' in paths (may cause issues when loading creatively named 2.X sessions; fix a couple of details of name collection and usage from the startup dialog

git-svn-id: svn://localhost/ardour2/branches/3.0@7772 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-09-14 15:45:21 +00:00
parent 875f0befd5
commit 4d112a8e6b
57 changed files with 563 additions and 474 deletions

View file

@ -50,7 +50,7 @@ using namespace Glib;
using namespace PBD;
/** Constructor used for new internal-to-session files. File cannot exist. */
SMFSource::SMFSource (Session& s, const ustring& path, Source::Flag flags)
SMFSource::SMFSource (Session& s, const string& path, Source::Flag flags)
: Source(s, DataType::MIDI, path, flags)
, MidiSource(s, path)
, FileSource(s, DataType::MIDI, path, flags)
@ -416,9 +416,9 @@ SMFSource::mark_streaming_write_completed ()
}
bool
SMFSource::safe_midi_file_extension (const Glib::ustring& file)
SMFSource::safe_midi_file_extension (const string& file)
{
return (file.rfind(".mid") != Glib::ustring::npos);
return (file.rfind(".mid") != string::npos);
}
void