diff options
author | Max Kellermann <max@duempel.org> | 2013-01-06 21:33:58 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-06 21:33:58 +0100 |
commit | 108242042e684b9d6147aeb97351b823e0a1ed0b (patch) | |
tree | 76f6fdc7854cd127f6b5899aed45968f7a777154 /src/PlaylistPrint.cxx | |
parent | 70652abf9750b62d2b4e5857d894494ae6058cf1 (diff) | |
download | mpd-108242042e684b9d6147aeb97351b823e0a1ed0b.tar.gz mpd-108242042e684b9d6147aeb97351b823e0a1ed0b.tar.xz mpd-108242042e684b9d6147aeb97351b823e0a1ed0b.zip |
queue: convert all functions to methods
Diffstat (limited to 'src/PlaylistPrint.cxx')
-rw-r--r-- | src/PlaylistPrint.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/PlaylistPrint.cxx b/src/PlaylistPrint.cxx index cbbd71bbd..7df7a9c39 100644 --- a/src/PlaylistPrint.cxx +++ b/src/PlaylistPrint.cxx @@ -41,7 +41,7 @@ playlist_print_uris(Client *client, const struct playlist *playlist) { const struct queue *queue = &playlist->queue; - queue_print_uris(client, queue, 0, queue_length(queue)); + queue_print_uris(client, queue, 0, queue->GetLength()); } bool @@ -50,9 +50,9 @@ playlist_print_info(Client *client, const struct playlist *playlist, { const struct queue *queue = &playlist->queue; - if (end > queue_length(queue)) + if (end > queue->GetLength()) /* correct the "end" offset */ - end = queue_length(queue); + end = queue->GetLength(); if (start > end) /* an invalid "start" offset is fatal */ @@ -69,7 +69,7 @@ playlist_print_id(Client *client, const struct playlist *playlist, const struct queue *queue = &playlist->queue; int position; - position = queue_id_to_position(queue, id); + position = queue->IdToPosition(id); if (position < 0) /* no such song */ return false; |