diff options
Diffstat (limited to 'src/db/DatabasePrint.cxx')
-rw-r--r-- | src/db/DatabasePrint.cxx | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/src/db/DatabasePrint.cxx b/src/db/DatabasePrint.cxx index 024573713..14725d4ce 100644 --- a/src/db/DatabasePrint.cxx +++ b/src/db/DatabasePrint.cxx @@ -148,12 +148,11 @@ PrintPlaylistFull(Response &r, bool base, return true; } -bool +void db_selection_print(Response &r, Partition &partition, const DatabaseSelection &selection, bool full, bool base, - unsigned window_start, unsigned window_end, - Error &error) + unsigned window_start, unsigned window_end) { const Database &db = partition.GetDatabaseOrThrow(); @@ -180,18 +179,16 @@ db_selection_print(Response &r, Partition &partition, s(song); }; - return db.Visit(selection, d, s, p, error); + db.Visit(selection, d, s, p); } -bool +void db_selection_print(Response &r, Partition &partition, const DatabaseSelection &selection, - bool full, bool base, - Error &error) + bool full, bool base) { - return db_selection_print(r, partition, selection, full, base, - 0, std::numeric_limits<int>::max(), - error); + db_selection_print(r, partition, selection, full, base, + 0, std::numeric_limits<int>::max()); } static bool @@ -218,11 +215,10 @@ PrintUniqueTag(Response &r, TagType tag_type, return true; } -bool +void PrintUniqueTags(Response &r, Partition &partition, unsigned type, tag_mask_t group_mask, - const SongFilter *filter, - Error &error) + const SongFilter *filter) { const Database &db = partition.GetDatabaseOrThrow(); @@ -232,15 +228,14 @@ PrintUniqueTags(Response &r, Partition &partition, using namespace std::placeholders; const auto f = std::bind(PrintSongURIVisitor, std::ref(r), std::ref(partition), _1); - return db.Visit(selection, f, error); + db.Visit(selection, f); } else { assert(type < TAG_NUM_OF_ITEM_TYPES); using namespace std::placeholders; const auto f = std::bind(PrintUniqueTag, std::ref(r), (TagType)type, _1); - return db.VisitUniqueTags(selection, (TagType)type, - group_mask, - f, error); + db.VisitUniqueTags(selection, (TagType)type, + group_mask, f); } } |