Replace use of pbd/filesystem.h with Glib alternative
authorTim Mayberry <mojofunk@gmail.com>
Sat, 23 Jun 2012 05:07:20 +0000 (05:07 +0000)
committerTim Mayberry <mojofunk@gmail.com>
Sat, 23 Jun 2012 05:07:20 +0000 (05:07 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12840 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/midi_region.cc

index 1bcbae8c571ad44ca283e486dedb3011f3b91699..518413e2de20da3d3eca1a2e919c045701fc5a3b 100644 (file)
@@ -27,7 +27,7 @@
 #include <glibmm/thread.h>
 
 #include "pbd/xml++.h"
-#include "pbd/filesystem.h"
+#include "pbd/basename.h"
 
 #include "ardour/automation_control.h"
 #include "ardour/midi_model.h"
@@ -135,7 +135,7 @@ MidiRegion::clone (string path) const
 
        PropertyList plist;
 
-       plist.add (Properties::name, sys::basename (ms->name()));
+       plist.add (Properties::name, PBD::basename_nosuffix (ms->name()));
        plist.add (Properties::whole_file, true);
        plist.add (Properties::start, _start);
        plist.add (Properties::start_beats, _start_beats);