Use path::leaf in sys::basename and sys::extension
git-svn-id: svn://localhost/ardour2/trunk@2407 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -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 ('.');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user