Make const

This commit is contained in:
Jonas Kvinge
2021-06-22 13:45:29 +02:00
parent 8c2b907ff5
commit 58a5367015
33 changed files with 78 additions and 78 deletions

View File

@@ -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);
}

View File

@@ -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;