pass ProxySongList around since it already has shared_ptr inside

This commit is contained in:
Andrzej Rybczak
2012-09-16 07:13:54 +02:00
parent ddd18681ba
commit 48cf01f084
19 changed files with 83 additions and 89 deletions

View File

@@ -80,9 +80,9 @@ void setProperties(NC::Menu<T> &menu, const MPD::Song &s, HasSongs &screen, bool
separate_albums = false;
if (Config.playlist_separate_albums)
{
auto pl = screen.getProxySongList();
auto pl = screen.proxySongList();
assert(pl);
auto next = pl->getSong(drawn_pos+1);
auto next = pl.getSong(drawn_pos+1);
if (next && next->getAlbum() != s.getAlbum())
separate_albums = true;
}