From 0eb05b827fc239854773b43baff82581d65f9c5b Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 2 Jan 2013 23:06:10 +0100 Subject: Directory: turn functions to methods --- src/Song.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Song.cxx') diff --git a/src/Song.cxx b/src/Song.cxx index deefe3c2..9da21645 100644 --- a/src/Song.cxx +++ b/src/Song.cxx @@ -161,10 +161,10 @@ song_get_uri(const struct song *song) assert(song != nullptr); assert(*song->uri); - if (!song_in_database(song) || directory_is_root(song->parent)) + if (!song_in_database(song) || song->parent->IsRoot()) return g_strdup(song->uri); else - return g_strconcat(directory_get_path(song->parent), + return g_strconcat(song->parent->GetPath(), "/", song->uri, nullptr); } -- cgit v1.2.3