playlist: define main screen as non-pointer

This commit is contained in:
Andrzej Rybczak
2012-09-14 16:16:35 +02:00
parent 4d6ea660bc
commit 9c29082afe
13 changed files with 119 additions and 118 deletions

View File

@@ -438,8 +438,8 @@ void SearchEngine::Search()
list = Mpd.GetDirectoryRecursive("/");
else
{
list.reserve(myPlaylist->main()->size());
for (auto s = myPlaylist->main()->beginV(); s != myPlaylist->main()->endV(); ++s)
list.reserve(myPlaylist->main().size());
for (auto s = myPlaylist->main().beginV(); s != myPlaylist->main().endV(); ++s)
list.push_back(*s);
}