From 4208fe29b540651c11b4812eedcc747df9d4f699 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 10 Aug 2018 18:35:29 +0200 Subject: [PATCH] tag/Mask: add method Unset() --- src/tag/Mask.hxx | 4 ++++ 1 file changed, 4 insertions(+) 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