13
0

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:
Tim Mayberry 2012-06-23 05:08:11 +00:00
parent a049a69a1a
commit 6aee537109
2 changed files with 4 additions and 4 deletions

View File

@ -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 ();
}

View File

@ -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