implement anyToHash() and use it for SdrCustomShapeGeometryItem

Desktop / LibreOffice - Luboš Luňák [collabora.com] - 9 January 2022 14:43 UTC

Using anyLess() still has quite some cost with bsc#1183308, this makes the cost almost unnoticeable.

Since some values of Any are not handled, return empty std::optional for those cases.

Change-Id: Ib45a81441e8bb456c4749f9bc53a981f09bbb1a5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128109

dd6ff1fd7fea implement anyToHash() and use it for SdrCustomShapeGeometryItem
comphelper/Library_comphelper.mk | 1 +
comphelper/source/misc/anytohash.cxx | 210 +++++++++++++++++++++++++++++++++++
include/comphelper/anytohash.hxx | 48 ++++++++
include/svx/sdasitm.hxx | 8 ++
solenv/clang-format/excludelist | 1 +
svx/source/items/customshapeitem.cxx | 51 +++++++--
6 files changed, 308 insertions(+), 11 deletions(-)

Upstream: cgit.freedesktop.org


  • Share