diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-26 18:59:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-29 08:30:00 +0200 |
commit | 24503d5ddfc0a83ac88aa23d03b69ed47f989e8e (patch) | |
tree | 39683a5df5964b1f6b03e16f574e7ca4e34440ee /include/svl | |
parent | c4d8b4ecd82fde107d12f6b606bcbd023cfdd7cb (diff) |
tdf#63640 FILEOPEN/FILESAVE: particular .odt loads/saves very slow, part1
Make CntUnencodedStringItem sortable, implementing operator<.
This takes the load time from 4s to 3.3s
Change-Id: I532cdf65149a733d41d2caf367675800d2ba4d41
Reviewed-on: https://gerrit.libreoffice.org/71460
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl')
-rw-r--r-- | include/svl/custritm.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/svl/custritm.hxx b/include/svl/custritm.hxx index 65facd5cd54e..3899df7b2fbc 100644 --- a/include/svl/custritm.hxx +++ b/include/svl/custritm.hxx @@ -38,6 +38,8 @@ public: {} virtual bool operator ==(const SfxPoolItem & rItem) const override; + virtual bool operator <(const SfxPoolItem & rItem) const override; + virtual bool IsSortable() const override { return true; } virtual bool GetPresentation(SfxItemPresentation, MapUnit, MapUnit, |