From 6aee53710916320742370354c0867004166c6dab Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 23 Jun 2012 05:08:11 +0000 Subject: [PATCH] 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 --- libs/pbd/filesystem.cc | 6 +++--- 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 f = Gio::File::create_for_path (p.to_string ()); + Glib::RefPtr 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