PlaylistItem: Add dtor
This commit is contained in:
@@ -41,6 +41,8 @@ using namespace Qt::Literals::StringLiterals;
|
||||
|
||||
PlaylistItem::PlaylistItem(const Song::Source source) : should_skip_(false), source_(source) {}
|
||||
|
||||
PlaylistItem::~PlaylistItem() = default;
|
||||
|
||||
PlaylistItemPtr PlaylistItem::NewFromSource(const Song::Source source) {
|
||||
|
||||
switch (source) {
|
||||
|
||||
@@ -49,6 +49,7 @@ using std::enable_shared_from_this;
|
||||
class PlaylistItem : public enable_shared_from_this<PlaylistItem> {
|
||||
public:
|
||||
explicit PlaylistItem(const Song::Source source);
|
||||
virtual ~PlaylistItem();
|
||||
|
||||
static SharedPtr<PlaylistItem> NewFromSource(const Song::Source source);
|
||||
static SharedPtr<PlaylistItem> NewFromSong(const Song &song);
|
||||
|
||||
Reference in New Issue
Block a user