tag/Mask: wrap in class

This commit is contained in:
Max Kellermann
2017-02-07 16:57:16 +01:00
parent 17097d96b7
commit 2f3f075e4f
16 changed files with 114 additions and 42 deletions

View File

@@ -37,7 +37,7 @@ TagLoadConfig()
if (value == nullptr)
return;
global_tag_mask = 0;
global_tag_mask = TagMask::None();
if (StringEqualsCaseASCII(value, "none"))
return;
@@ -60,7 +60,7 @@ TagLoadConfig()
FormatFatalError("error parsing metadata item \"%s\"",
c);
global_tag_mask |= tag_mask_t(1) << unsigned(type);
global_tag_mask |= type;
s++;
c = s;