Change PBD::sys::get_absolute_path to take and return a std::string
git-svn-id: svn://localhost/ardour2/branches/3.0@12862 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a049a69a1a
commit
6aee537109
@ -211,10 +211,10 @@ extension (const path & p)
|
||||
|
||||
}
|
||||
|
||||
path
|
||||
get_absolute_path (const path & p)
|
||||
std::string
|
||||
get_absolute_path (const std::string & p)
|
||||
{
|
||||
Glib::RefPtr<Gio::File> f = Gio::File::create_for_path (p.to_string ());
|
||||
Glib::RefPtr<Gio::File> f = Gio::File::create_for_path (p);
|
||||
return f->get_path ();
|
||||
}
|
||||
|
||||
|
@ -192,7 +192,7 @@ std::string extension (const path& p);
|
||||
* Take a (possibly) relative path and make it absolute
|
||||
* @return An absolute path
|
||||
*/
|
||||
path get_absolute_path (const path &);
|
||||
std::string get_absolute_path (const std::string &);
|
||||
|
||||
/**
|
||||
* Find out if `needle' is a file or directory within the
|
||||
|
Loading…
Reference in New Issue
Block a user