diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-08-15 10:48:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-08-15 16:07:17 +0200 |
commit | 58f45fdf1968b6605e55fa36c3cbd250b332ae95 (patch) | |
tree | e460a58c5d42f8dacd5b8aab9036cfad409b49b6 /sw/inc | |
parent | fb282d552f5a8ecd89c6fd845a6db116d8362114 (diff) |
make SfxStringItem hashable
which shaves some time off loading complex files.
Note that this class is often used as a superclass, so I checked all of
the subclasses and marked some of them as "does not support hashing"
until they can be independently verified to be safe
Change-Id: Id4187eda8d6145e89e17dc10c2e3113b7a93da85
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171891
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/paratr.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/inc/paratr.hxx b/sw/inc/paratr.hxx index 3a8fd5d03674..5c8d93b49b76 100644 --- a/sw/inc/paratr.hxx +++ b/sw/inc/paratr.hxx @@ -166,6 +166,9 @@ public: /// "pure virtual methods" of SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; virtual SwNumRuleItem* Clone( SfxItemPool *pPool = nullptr ) const override; + // Marked as false since the SfxStringItem superclass supports hashing, but + // this class has not been checked for safety under hashing yet. + virtual bool supportsHashCode() const override { return false; } virtual bool GetPresentation( SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, |