diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-12 11:38:19 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-06-12 11:38:19 +0200 |
commit | 5555051ee33e1e9ae58d6bc787cd1f51538e218e (patch) | |
tree | 19c8559312c8517d7340f9bfece3b41abb2d2947 /core/variant/variant.h | |
parent | dcd31a25b473e8c6049224e586418de0f1ecdbf3 (diff) | |
parent | 5654d403677dc93a68c47c63c6a2224f493bd8ff (diff) | |
download | redot-engine-5555051ee33e1e9ae58d6bc787cd1f51538e218e.tar.gz |
Merge pull request #67732 from aaronfranke/variant-enum-ref
Don't use a const reference for the enum constructor in Variant
Diffstat (limited to 'core/variant/variant.h')
-rw-r--r-- | core/variant/variant.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/variant/variant.h b/core/variant/variant.h index f694e59051..04c2fe2012 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; \ } |