Don't use a const reference for the enum constructor in Variant

This commit is contained in:
Aaron Franke 2022-10-16 18:52:54 -05:00
parent 37d1dfef9d
commit 5654d40367
No known key found for this signature in database
GPG Key ID: 40A1750B977E56BF
1 changed files with 1 additions and 1 deletions

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