Remove const

This commit is contained in:
Jonas Kvinge
2024-06-12 18:09:23 +02:00
parent a36bf2df65
commit 4ba5113842
4 changed files with 4 additions and 4 deletions

View File

@@ -484,7 +484,7 @@ int Playlist::current_row() const {
return current_item_index_.isValid() ? current_item_index_.row() : -1;
}
const QModelIndex Playlist::current_index() const {
QModelIndex Playlist::current_index() const {
return current_item_index_;
}

View File

@@ -186,7 +186,7 @@ class Playlist : public QAbstractListModel {
int next_row(const bool ignore_repeat_track = false);
int previous_row(const bool ignore_repeat_track = false);
const QModelIndex current_index() const;
QModelIndex current_index() const;
bool stop_after_current() const;
bool is_dynamic() const { return static_cast<bool>(dynamic_playlist_); }