summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-08-22 15:56:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-08-22 19:23:59 +0200
commit0b49ac534a532b00bee69e96c4e9bc352fc82c4e (patch)
tree5356d37cbeeeb53f36104c4327768698dd53c4b9 /svx
parentceec55249ed454b61a342358935d8b254539ff73 (diff)
tdf#158556 make SvxGrfCrop hashable
Change-Id: I30c8f44156a05519dc2f6db59734013e217c91b1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172261 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/items/grfitem.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/svx/source/items/grfitem.cxx b/svx/source/items/grfitem.cxx
index b87f021a6f5f..d65682d28da1 100644
--- a/svx/source/items/grfitem.cxx
+++ b/svx/source/items/grfitem.cxx
@@ -53,6 +53,15 @@ bool SvxGrfCrop::operator==( const SfxPoolItem& rAttr ) const
m_nBottom == rCrop.GetBottom();
}
+size_t SvxGrfCrop::hashCode() const
+{
+ std::size_t seed(0);
+ o3tl::hash_combine(seed, m_nLeft);
+ o3tl::hash_combine(seed, m_nRight);
+ o3tl::hash_combine(seed, m_nTop);
+ o3tl::hash_combine(seed, m_nBottom);
+ return seed;
+}
bool SvxGrfCrop::QueryValue( uno::Any& rVal, sal_uInt8 nMemberId ) const
{