diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-26 12:16:35 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-26 14:28:44 +0200 |
commit | c390c2e3f44953e236389467c7c090cee9ebc1b7 (patch) | |
tree | a150ca7098afa3e9afbf4d337e233da0e82d2aea /include | |
parent | f6b05d9feb5c74606b55a83da9ba06673ccc161f (diff) |
mark SvxFontItem as IsSortable
which speeds up some searching in the pool
Change-Id: I9fe7da50b4d803010c88702d8cd03c3380e7cc0d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134992
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/fontitem.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/editeng/fontitem.hxx b/include/editeng/fontitem.hxx index 2ccaade20121..35743b9949e1 100644 --- a/include/editeng/fontitem.hxx +++ b/include/editeng/fontitem.hxx @@ -47,6 +47,7 @@ public: // "pure virtual Methods" from SfxPoolItem virtual bool operator==(const SfxPoolItem& rItem) const override; bool operator<(const SfxPoolItem& rCmp) const override; + virtual bool IsSortable() const override { return true; } virtual SvxFontItem* Clone(SfxItemPool *pPool = nullptr) const override; virtual bool QueryValue(css::uno::Any& rVal, sal_uInt8 nMemberId = 0) const override; virtual bool PutValue(const css::uno::Any& rVal, sal_uInt8 nMemberId) override; |