make anyLess() work also for compound types such as sequences

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

The previous implementation used the specific predicates, which are not recursive. And since that'd require constructing Any instances, which copies, which would be slow, write new code based on anyToString() instead.

Change-Id: I439f81d4b1efbd46c10d50d0725a5f6f40968b12 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128045

ba252c51f5b4 make anyLess() work also for compound types such as sequences
comphelper/Library_comphelper.mk | 2 +-
comphelper/source/misc/anycompare.cxx | 295 ++++++++++++++++++++++++++++------
2 files changed, 246 insertions(+), 51 deletions(-)

Upstream: cgit.freedesktop.org


  • Share