summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-07-29 11:36:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-07-29 13:48:02 +0200
commit847738e5a93f63ead959a7cc60d65fd55737fee7 (patch)
tree78a011b171f81bd4c37d5a912cefae28eec15174 /include/svl
parent44d129870795da2e370ad5f2f8abc95c5c6873aa (diff)
use more GetItemSurrogatesForItem
since it is considerably more efficient Change-Id: I224ff890f6dd52481621b46f912f1e8dbf65126c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171182 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/itempool.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/svl/itempool.hxx b/include/svl/itempool.hxx
index 030a09d0f688..873d56bc0e75 100644
--- a/include/svl/itempool.hxx
+++ b/include/svl/itempool.hxx
@@ -321,8 +321,9 @@ public:
// Read commit text for more information
void GetItemSurrogates(ItemSurrogates& rTarget, sal_uInt16 nWhich) const;
- // special version for read-oly itemSurrogates for NameOrIndex Items
+ // special version for read-only itemSurrogates for NameOrIndex Items
void GetItemSurrogatesForItem(ItemSurrogates& rTarget, const SfxPoolItem& rItem) const;
+ void GetItemSurrogatesForItem(ItemSurrogates& rTarget, SfxItemType eItemType) const;
sal_uInt16 GetFirstWhich() const { return mnStart; }
sal_uInt16 GetLastWhich() const { return mnEnd; }