diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2007-09-04 09:01:21 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2007-09-04 09:01:21 +0000 |
commit | bb5314c3643d6f3f6fd015e598de8fd29f3148ac (patch) | |
tree | 7eb151a2eec6cff22a3be3d099b8a0b4d8dc460c /libs/pbd | |
parent | 414dd87040ca2646206711c0f0d0895a3219ddf1 (diff) |
Use path::leaf in sys::basename and sys::extension
git-svn-id: svn://localhost/ardour2/trunk@2407 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/filesystem.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/pbd/filesystem.cc b/libs/pbd/filesystem.cc index b257da9e33..7943e40b74 100644 --- a/libs/pbd/filesystem.cc +++ b/libs/pbd/filesystem.cc @@ -161,7 +161,7 @@ copy_file(const path & from_path, const path & to_path) string basename (const path & p) { - string base = Glib::path_get_basename (p.to_string()); + string base(p.leaf()); string::size_type n = base.rfind ('.'); @@ -171,7 +171,7 @@ basename (const path & p) string extension (const path & p) { - string base = Glib::path_get_basename (p.to_string()); + string base(p.leaf()); string::size_type n = base.rfind ('.'); |