summaryrefslogtreecommitdiff
path: root/src/queue
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-07-25 07:43:05 +0200
committerMax Kellermann <max@musicpd.org>2018-07-25 07:43:05 +0200
commit78a65cf2817c6584a35789d46c45872c2557924e (patch)
tree7a493f8bd1a5a9422c48cf616f789243a0a037d3 /src/queue
parent96017f58a5f4c4d25a8c5a0b5f75777f13bdf8e0 (diff)
SongFilter: remove DetachedSong overloads
All DetachedSong instances should be converted to LightSong first, which is a very cheap operation.
Diffstat (limited to 'src/queue')
-rw-r--r--src/queue/QueuePrint.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/queue/QueuePrint.cxx b/src/queue/QueuePrint.cxx
index 8fc07729d..f5daca0c4 100644
--- a/src/queue/QueuePrint.cxx
+++ b/src/queue/QueuePrint.cxx
@@ -22,6 +22,8 @@
#include "Queue.hxx"
#include "SongFilter.hxx"
#include "SongPrint.hxx"
+#include "DetachedSong.hxx"
+#include "db/LightSong.hxx"
#include "client/Response.hxx"
/**
@@ -111,7 +113,7 @@ queue_find(Response &r, const Queue &queue,
const SongFilter &filter)
{
for (unsigned i = 0; i < queue.GetLength(); i++) {
- const DetachedSong &song = queue.Get(i);
+ const LightSong song{queue.Get(i)};
if (filter.Match(song))
queue_print_song_info(r, queue, i);