Merge pull request #67732 from aaronfranke/variant-enum-ref

Don't use a const reference for the enum constructor in Variant
This commit is contained in:
Rémi Verschelde 2023-06-12 11:38:19 +02:00
commit 5555051ee3
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -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; \
}