summaryrefslogtreecommitdiffstats
path: root/core/variant/binder_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/variant/binder_common.h')
-rw-r--r--core/variant/binder_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/variant/binder_common.h b/core/variant/binder_common.h
index f31191e8a3..22a13b0fab 100644
--- a/core/variant/binder_common.h
+++ b/core/variant/binder_common.h
@@ -100,6 +100,10 @@ struct VariantCaster<const T &> {
_FORCE_INLINE_ static void encode(m_enum p_val, const void *p_ptr) { \
*(int64_t *)p_ptr = (int64_t)p_val; \
} \
+ }; \
+ template <> \
+ struct ZeroInitializer<m_enum> { \
+ static void initialize(m_enum &value) { value = (m_enum)0; } \
};
// Object enum casts must go here