Remove const
This commit is contained in:
@@ -32,7 +32,7 @@ void SqlRow::Init(const SqlQuery &query) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const QVariant SqlRow::value(const int n) const {
|
QVariant SqlRow::value(const int n) const {
|
||||||
|
|
||||||
Q_ASSERT(n < record_.count());
|
Q_ASSERT(n < record_.count());
|
||||||
|
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ class SqlRow {
|
|||||||
|
|
||||||
int columns() const { return record_.count(); }
|
int columns() const { return record_.count(); }
|
||||||
const QSqlRecord &record() const { return record_; }
|
const QSqlRecord &record() const { return record_; }
|
||||||
const QVariant value(const int n) const;
|
QVariant value(const int n) const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void Init(const SqlQuery &query);
|
void Init(const SqlQuery &query);
|
||||||
|
|||||||
@@ -484,7 +484,7 @@ int Playlist::current_row() const {
|
|||||||
return current_item_index_.isValid() ? current_item_index_.row() : -1;
|
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_;
|
return current_item_index_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -186,7 +186,7 @@ class Playlist : public QAbstractListModel {
|
|||||||
int next_row(const bool ignore_repeat_track = false);
|
int next_row(const bool ignore_repeat_track = false);
|
||||||
int previous_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 stop_after_current() const;
|
||||||
bool is_dynamic() const { return static_cast<bool>(dynamic_playlist_); }
|
bool is_dynamic() const { return static_cast<bool>(dynamic_playlist_); }
|
||||||
|
|||||||
Reference in New Issue
Block a user