diff options
Diffstat (limited to 'include/svl/eitem.hxx')
-rw-r--r-- | include/svl/eitem.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/svl/eitem.hxx b/include/svl/eitem.hxx index f6fb22bfeb7d..fd398e8f0cbb 100644 --- a/include/svl/eitem.hxx +++ b/include/svl/eitem.hxx @@ -62,6 +62,16 @@ public: return SfxEnumItemInterface::operator==(other) && m_nValue == static_cast<const SfxEnumItem<EnumT> &>(other).m_nValue; } + + virtual bool supportsHashCode() const override final + { + return true; + } + + virtual size_t hashCode() const override final + { + return Which() ^ GetEnumValue(); + } }; class SVL_DLLPUBLIC SfxBoolItem |