Use PlaylistItemList

This commit is contained in:
Jonas Kvinge
2021-11-09 19:21:10 +01:00
parent c48c65d0ce
commit 2151d96303
4 changed files with 6 additions and 6 deletions

View File

@@ -177,9 +177,9 @@ PlaylistBackend::Playlist PlaylistBackend::GetPlaylist(const int id) {
}
QList<PlaylistItemPtr> PlaylistBackend::GetPlaylistItems(const int playlist) {
PlaylistItemList PlaylistBackend::GetPlaylistItems(const int playlist) {
QList<PlaylistItemPtr> playlistitems;
PlaylistItemList playlistitems;
{
@@ -194,7 +194,7 @@ QList<PlaylistItemPtr> PlaylistBackend::GetPlaylistItems(const int playlist) {
q.BindValue(":playlist", playlist);
if (!q.Exec()) {
db_->ReportErrors(q);
return QList<PlaylistItemPtr>();
return PlaylistItemList();
}
// it's probable that we'll have a few songs associated with the same CUE so we're caching results of parsing CUEs