Make function const
This commit is contained in:
@@ -629,7 +629,7 @@ void MusicLibraryItemRoot::clearItems()
|
||||
m_genres.clear();
|
||||
}
|
||||
|
||||
QString MusicLibraryItemRoot::songArtist(const Song &s)
|
||||
QString MusicLibraryItemRoot::songArtist(const Song &s) const
|
||||
{
|
||||
if (!supportsAlbumArtist) {
|
||||
return s.artist;
|
||||
|
||||
@@ -92,8 +92,8 @@ public:
|
||||
void toggleGrouping();
|
||||
void clearItems();
|
||||
|
||||
private:
|
||||
QString songArtist(const Song &s);
|
||||
protected:
|
||||
QString songArtist(const Song &s) const;
|
||||
|
||||
protected:
|
||||
bool supportsAlbumArtist; // TODO: ALBUMARTIST: Remove when libMPT supports album artist!
|
||||
|
||||
Reference in New Issue
Block a user