summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-03-15 19:54:16 +0100
committerMax Kellermann <max@musicpd.org>2019-03-15 19:54:16 +0100
commit67d73a2aee0af836ae62c129feb41e5d60cd658f (patch)
tree02a618178208d0ee28ae766fcc3aa41c19f50e96
parentfde9a470dd889243b6d26a753cf172f894a6bc18 (diff)
song/TagSongFilter: improve lambda indent
-rw-r--r--src/song/TagSongFilter.cxx25
1 files changed, 12 insertions, 13 deletions
diff --git a/src/song/TagSongFilter.cxx b/src/song/TagSongFilter.cxx
index 2a084de5e..7f8c5d7e1 100644
--- a/src/song/TagSongFilter.cxx
+++ b/src/song/TagSongFilter.cxx
@@ -55,21 +55,20 @@ TagSongFilter::Match(const Tag &tag) const noexcept
if (type < TAG_NUM_OF_ITEM_TYPES && !visited_types[type]) {
bool result = false;
- if (ApplyTagFallback(type,
- [&](TagType tag2) {
- if (!visited_types[tag2])
- return false;
+ if (ApplyTagFallback(type, [&](TagType tag2) {
+ if (!visited_types[tag2])
+ return false;
- for (const auto &item : tag) {
- if (item.type == tag2 &&
- filter.Match(item.value)) {
- result = true;
- break;
- }
- }
+ for (const auto &item : tag) {
+ if (item.type == tag2 &&
+ filter.Match(item.value)) {
+ result = true;
+ break;
+ }
+ }
- return true;
- }))
+ return true;
+ }))
return result;
/* If the search critieron was not visited during the