diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-08-23 10:05:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-08-24 09:01:29 +0200 |
commit | 1ba2b87ba52bf26e8cef667a35bfb7f2232acf11 (patch) | |
tree | f7ad44868e7dffb1021eba7e49a37c019d093e36 /editeng | |
parent | 513b20a5f38cb3492d31e0262f0b278d77f653b0 (diff) |
tdf#158556 make SvxAdjustItem hashable
Change-Id: Ic6bda5fad24ef0d9676bfb3d997da9c32aa959f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172324
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/items/paraitem.cxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/editeng/source/items/paraitem.cxx b/editeng/source/items/paraitem.cxx index 3978db4bc6d5..3bdec7afbf1d 100644 --- a/editeng/source/items/paraitem.cxx +++ b/editeng/source/items/paraitem.cxx @@ -377,6 +377,16 @@ bool SvxAdjustItem::operator==( const SfxPoolItem& rAttr ) const bLastBlock == rItem.bLastBlock; } +size_t SvxAdjustItem::hashCode() const +{ + std::size_t seed(0); + o3tl::hash_combine(seed, GetAdjust()); + o3tl::hash_combine(seed, bOneBlock); + o3tl::hash_combine(seed, bLastCenter); + o3tl::hash_combine(seed, bLastBlock); + return seed; +} + bool SvxAdjustItem::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const { nMemberId &= ~CONVERT_TWIPS; |