Make const
This commit is contained in:
@@ -543,7 +543,7 @@ void PlaylistManager::RemoveItemsWithoutUndo(const int id, const QList<int> &ind
|
||||
|
||||
}
|
||||
|
||||
void PlaylistManager::RemoveCurrentSong() {
|
||||
void PlaylistManager::RemoveCurrentSong() const {
|
||||
active()->removeRows(active()->current_index().row(), 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -213,7 +213,7 @@ class PlaylistManager : public PlaylistManagerInterface {
|
||||
// Removes items with given indices from the playlist. This operation is not undoable.
|
||||
void RemoveItemsWithoutUndo(const int id, const QList<int> &indices);
|
||||
// Remove the current playing song
|
||||
void RemoveCurrentSong();
|
||||
void RemoveCurrentSong() const;
|
||||
|
||||
void PlaySmartPlaylist(PlaylistGeneratorPtr generator, const bool as_new, const bool clear) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user