song list: get rid of boost::zip_iterator and improve {Const,}SongIterator

This commit is contained in:
Andrzej Rybczak
2016-12-08 04:28:43 +01:00
parent 612f8c3145
commit b7386c4fa6
15 changed files with 244 additions and 161 deletions

View File

@@ -387,12 +387,10 @@ template <typename ListT>
void markSongsInPlaylist(ListT &list)
{
ScopedUnfilteredMenu<typename ListT::Item::Type> sunfilter(ReapplyFilter::No, list);
MPD::Song *s;
for (auto &p : static_cast<SongList &>(list))
{
s = p.get<Bit::Song>();
if (s != nullptr)
p.get<Bit::Properties>().setBold(myPlaylist->checkForSong(*s));
if (p.song() != nullptr)
p.properties().setBold(myPlaylist->checkForSong(*p.song()));
}
}