Make function const

This commit is contained in:
craig.p.drummond
2013-02-27 19:42:49 +00:00
parent 465b5605ae
commit 01aefab0e5
2 changed files with 3 additions and 3 deletions

View File

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

View File

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