mpd: replace all consumers with iterators

This commit is contained in:
Andrzej Rybczak
2014-11-03 00:43:47 +01:00
parent e5b0c7a357
commit 202a21c4b3
7 changed files with 141 additions and 172 deletions

View File

@@ -321,9 +321,9 @@ void MediaLibrary::update()
}
else
{
Mpd.GetList(Config.media_lib_primary_tag, [&tags](std::string tag) {
tags[tag] = 0;
});
MPD::StringIterator tag = Mpd.GetList(Config.media_lib_primary_tag), end;
for (; tag != end; ++tag)
tags[std::move(*tag)] = 0;
}
withUnfilteredMenuReapplyFilter(Tags, [this, &tags]() {
size_t idx = 0;