From 9ff1ff75cb9c7be2745398f28bdf0ce09b0501d9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 6 Jul 2018 12:44:22 +0200 Subject: [PATCH] tag/Handler: add FullTagHandler constructor with want_mask --- src/tag/Handler.hxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tag/Handler.hxx b/src/tag/Handler.hxx index 1eec14cbc..414daf965 100644 --- a/src/tag/Handler.hxx +++ b/src/tag/Handler.hxx @@ -116,9 +116,13 @@ public: * attribute. */ class FullTagHandler : public AddTagHandler { +protected: + FullTagHandler(unsigned _want_mask, TagBuilder &_builder) noexcept + :AddTagHandler(WANT_PAIR|_want_mask, _builder) {} + public: explicit FullTagHandler(TagBuilder &_builder) noexcept - :AddTagHandler(WANT_PAIR, _builder) {} + :FullTagHandler(0, _builder) {} void OnPair(const char *key, const char *value) noexcept override; };