From 26c88befdab5de2d09a9f401edfc7a0b614e689a Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 5 Apr 2022 23:30:06 +0200 Subject: [PATCH] Make dummy definition in supportsField() const --- fieldbasedtag.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fieldbasedtag.h b/fieldbasedtag.h index dd75b6d..b18ad09 100644 --- a/fieldbasedtag.h +++ b/fieldbasedtag.h @@ -350,7 +350,7 @@ template inline KnownField FieldMapBasedTag inline bool FieldMapBasedTag::supportsField(KnownField field) const { - static IdentifierType def; + static const auto def = IdentifierType(); return fieldId(field) != def; }