aboutsummaryrefslogtreecommitdiff
path: root/src/SongPrint.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-02 23:06:10 +0100
committerMax Kellermann <max@duempel.org>2013-01-02 23:06:10 +0100
commit0eb05b827fc239854773b43baff82581d65f9c5b (patch)
treec4f5d1aba7b4aad89826707310b6b75573453408 /src/SongPrint.cxx
parent0c245bc2712f5d38507b8d421cdc0a7e002a3398 (diff)
Directory: turn functions to methods
Diffstat (limited to 'src/SongPrint.cxx')
-rw-r--r--src/SongPrint.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SongPrint.cxx b/src/SongPrint.cxx
index 957db76a..b15a5cf1 100644
--- a/src/SongPrint.cxx
+++ b/src/SongPrint.cxx
@@ -33,9 +33,9 @@ extern "C" {
void
song_print_uri(struct client *client, struct song *song)
{
- if (song_in_database(song) && !directory_is_root(song->parent)) {
+ if (song_in_database(song) && !song->parent->IsRoot()) {
client_printf(client, "%s%s/%s\n", SONG_FILE,
- directory_get_path(song->parent), song->uri);
+ song->parent->GetPath(), song->uri);
} else {
char *allocated;
const char *uri;