aboutsummaryrefslogtreecommitdiff
path: root/src/QueuePrint.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-08-29 19:27:03 +0200
committerMax Kellermann <max@duempel.org>2012-08-29 20:19:02 +0200
commit333d226ed0044cf6a6387e03805be2d7f6dac6f2 (patch)
tree7acb6fc795fcd2bb8aa75c16172de1ff7a761e8f /src/QueuePrint.cxx
parent04a9dec9525a58d077da71a84655cb45b7838520 (diff)
SongFilter: convert to a C++ class
Diffstat (limited to 'src/QueuePrint.cxx')
-rw-r--r--src/QueuePrint.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/QueuePrint.cxx b/src/QueuePrint.cxx
index 0a61cc5d..edac7c7a 100644
--- a/src/QueuePrint.cxx
+++ b/src/QueuePrint.cxx
@@ -18,10 +18,10 @@
*/
#include "config.h"
+#include "QueuePrint.hxx"
#include "SongFilter.hxx"
extern "C" {
-#include "queue_print.h"
#include "queue.h"
#include "song.h"
#include "song_print.h"
@@ -96,12 +96,12 @@ queue_print_changes_position(struct client *client, const struct queue *queue,
void
queue_find(struct client *client, const struct queue *queue,
- const struct locate_item_list *criteria)
+ const SongFilter &filter)
{
for (unsigned i = 0; i < queue_length(queue); i++) {
const struct song *song = queue_get(queue, i);
- if (locate_list_song_match(song, criteria))
+ if (filter.Match(*song))
queue_print_song_info(client, queue, i);
}
}