summaryrefslogtreecommitdiff
path: root/src/db/DatabasePrint.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-07-25 11:21:47 +0200
committerMax Kellermann <max@musicpd.org>2018-07-25 11:21:47 +0200
commitf7fb8a33d7265126fcc98eca2cd51aa7c268d851 (patch)
treea3a4296521d1d6a054540d4378afa246e6be93dc /src/db/DatabasePrint.cxx
parent0505cb8f7e2f96f2fc7c993d0673b54648d52582 (diff)
db/Print: pass TagType to PrintUniqueTags()
Diffstat (limited to 'src/db/DatabasePrint.cxx')
-rw-r--r--src/db/DatabasePrint.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/db/DatabasePrint.cxx b/src/db/DatabasePrint.cxx
index 89172299d..dfcdf02ce 100644
--- a/src/db/DatabasePrint.cxx
+++ b/src/db/DatabasePrint.cxx
@@ -303,7 +303,7 @@ PrintUniqueTag(Response &r, TagType tag_type,
void
PrintUniqueTags(Response &r, Partition &partition,
- unsigned type, TagMask group_mask,
+ TagType type, TagMask group_mask,
const SongFilter *filter)
{
assert(type < TAG_NUM_OF_ITEM_TYPES);
@@ -313,8 +313,6 @@ PrintUniqueTags(Response &r, Partition &partition,
const DatabaseSelection selection("", true, filter);
using namespace std::placeholders;
- const auto f = std::bind(PrintUniqueTag, std::ref(r),
- (TagType)type, _1);
- db.VisitUniqueTags(selection, (TagType)type,
- group_mask, f);
+ const auto f = std::bind(PrintUniqueTag, std::ref(r), type, _1);
+ db.VisitUniqueTags(selection, type, group_mask, f);
}