make use of override keyword if available

This commit is contained in:
Andrzej Rybczak
2012-09-04 19:19:37 +02:00
parent 6d87ebbc43
commit f6fb2ed54c
21 changed files with 298 additions and 292 deletions

View File

@@ -338,22 +338,6 @@ std::shared_ptr<ProxySongList> Playlist::getProxySongList()
return ptr;
}
MPD::Song *Playlist::getSong(size_t pos)
{
MPD::Song *ptr = 0;
if (w == Items)
ptr = &(*Items)[pos].value();
return ptr;
}
MPD::Song *Playlist::currentSong()
{
if (Items->empty())
return 0;
else
return getSong(Items->choice());
}
bool Playlist::allowsSelection()
{
return w == Items;