summaryrefslogtreecommitdiff
path: root/src/tag
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-08-10 18:35:29 +0200
committerMax Kellermann <max@musicpd.org>2018-08-10 18:46:15 +0200
commit4208fe29b540651c11b4812eedcc747df9d4f699 (patch)
tree9fc909e15e848322ab6bc36a7d8939c03e976ade /src/tag
parent1b593462d3e0940eeb7503a12a0240fca597ed23 (diff)
tag/Mask: add method Unset()
Diffstat (limited to 'src/tag')
-rw-r--r--src/tag/Mask.hxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tag/Mask.hxx b/src/tag/Mask.hxx
index fdc71d9bb..a4f77054a 100644
--- a/src/tag/Mask.hxx
+++ b/src/tag/Mask.hxx
@@ -87,6 +87,10 @@ public:
void Set(TagType tag) {
*this |= tag;
}
+
+ void Unset(TagType tag) {
+ *this |= ~TagMask(tag);
+ }
};
#endif