diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:08:11 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:08:11 +0000 |
commit | 6aee53710916320742370354c0867004166c6dab (patch) | |
tree | fe98b2aa18130197f027a159b73c373b0a941629 /libs/pbd | |
parent | a049a69a1ae47b1f47b9d15aa373f4836a07e87e (diff) |
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
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/filesystem.cc | 6 | ||||
-rw-r--r-- | libs/pbd/pbd/filesystem.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/libs/pbd/filesystem.cc b/libs/pbd/filesystem.cc index 4f0c8a204a..4e39374b98 100644 --- a/libs/pbd/filesystem.cc +++ b/libs/pbd/filesystem.cc @@ -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 (); } diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h index 6f84606d5d..f09c400f2e 100644 --- a/libs/pbd/pbd/filesystem.h +++ b/libs/pbd/pbd/filesystem.h @@ -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 |