diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-08-23 08:50:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-08-23 16:45:52 +0200 |
commit | e9594ac00a65c0a55286900265eadaa997e3f6ec (patch) | |
tree | b096b23d26d6d180bda43132616fc19829d40341 /sw/inc/grfatr.hxx | |
parent | 01d183d2290668c310d592bf2e4c298ddcfb10b4 (diff) |
tdf#158556 make SwGammaGrf hashable
Change-Id: Ia65013ffee3ef72b61331fd3b4f7ab0b913bf01e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172304
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/grfatr.hxx')
-rw-r--r-- | sw/inc/grfatr.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sw/inc/grfatr.hxx b/sw/inc/grfatr.hxx index f6fe5bb8b05f..39bdad0c1d1d 100644 --- a/sw/inc/grfatr.hxx +++ b/sw/inc/grfatr.hxx @@ -197,6 +197,8 @@ public: // pure virtual methods from SfxEnumItem virtual SwGammaGrf* Clone( SfxItemPool *pPool = nullptr ) const override; virtual bool operator==( const SfxPoolItem& ) const override; + virtual bool supportsHashCode() const override { return true; } + virtual size_t hashCode() const override { return static_cast<size_t>(m_nValue); } virtual bool GetPresentation( SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, |