From 5654d403677dc93a68c47c63c6a2224f493bd8ff Mon Sep 17 00:00:00 2001 From: Aaron Franke Date: Sun, 16 Oct 2022 18:52:54 -0500 Subject: [PATCH] Don't use a const reference for the enum constructor in Variant --- core/variant/variant.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/variant/variant.h b/core/variant/variant.h index f694e59051b..04c2fe2012b 100644 --- a/core/variant/variant.h +++ b/core/variant/variant.h @@ -488,7 +488,7 @@ public: Variant(const IPAddress &p_address); #define VARIANT_ENUM_CLASS_CONSTRUCTOR(m_enum) \ - Variant(const m_enum &p_value) { \ + Variant(m_enum p_value) { \ type = INT; \ _data._int = (int64_t)p_value; \ }