aboutsummaryrefslogtreecommitdiffstats
path: root/src/tag/TagConfig.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-24 11:10:15 +0200
committerMax Kellermann <max@duempel.org>2015-08-24 11:20:45 +0200
commit0c19418e84a4db3f1e5a9ca143d5986a104a5675 (patch)
treed09343c895caf12ecd8d7c3b30957b4934529837 /src/tag/TagConfig.cxx
parent60c077c79076f50317a4637b65c69bff3df134a7 (diff)
downloadmpd-0c19418e84a4db3f1e5a9ca143d5986a104a5675.tar.gz
mpd-0c19418e84a4db3f1e5a9ca143d5986a104a5675.tar.xz
mpd-0c19418e84a4db3f1e5a9ca143d5986a104a5675.zip
tag/Settings: convert to bit mask
Diffstat (limited to 'src/tag/TagConfig.cxx')
-rw-r--r--src/tag/TagConfig.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tag/TagConfig.cxx b/src/tag/TagConfig.cxx
index e4d40696d..de5faff32 100644
--- a/src/tag/TagConfig.cxx
+++ b/src/tag/TagConfig.cxx
@@ -39,7 +39,7 @@ TagLoadConfig()
if (value == nullptr)
return;
- std::fill_n(ignore_tag_items, size_t(TAG_NUM_OF_ITEM_TYPES), true);
+ global_tag_mask = 0;
if (StringEqualsCaseASCII(value, "none"))
return;
@@ -62,7 +62,7 @@ TagLoadConfig()
FormatFatalError("error parsing metadata item \"%s\"",
c);
- ignore_tag_items[type] = false;
+ global_tag_mask |= tag_mask_t(1) << unsigned(type);
s++;
c = s;