Change parameters to const

This commit is contained in:
Jonas Kvinge 2019-06-20 17:09:07 +02:00
parent 751d652a2f
commit d7761e8d79
2 changed files with 3 additions and 3 deletions

View File

@ -337,7 +337,7 @@ void InternetSearchView::LazyLoadArt(const QModelIndex &proxy_index) {
}
void InternetSearchView::ArtLoaded(int id, const QPixmap &pixmap) {
void InternetSearchView::ArtLoaded(const int id, const QPixmap &pixmap) {
if (!art_requests_.contains(id)) return;
QModelIndex index = art_requests_.take(id);
@ -586,7 +586,7 @@ void InternetSearchView::SearchSongsClicked(bool checked) {
SetSearchType(InternetSearch::SearchType_Songs);
}
void InternetSearchView::SetSearchType(InternetSearch::SearchType type) {
void InternetSearchView::SetSearchType(const InternetSearch::SearchType type) {
search_type_ = type;
QSettings s;
s.beginGroup(settings_group_);

View File

@ -104,7 +104,7 @@ class InternetSearchView : public QWidget {
void SearchAlbumsClicked(bool);
void SearchSongsClicked(bool);
void GroupByClicked(QAction *action);
void SetSearchType(InternetSearch::SearchType type);
void SetSearchType(const InternetSearch::SearchType type);
void SetGroupBy(const CollectionModel::Grouping &g);
void AddArtists();