summaryrefslogtreecommitdiff
path: root/include/svl
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2022-05-28 16:53:01 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2022-05-28 17:37:07 +0200
commit51f46ddaccd9a2c16b6a4a80b7627af7b13850f4 (patch)
tree18dfa4fd6de107332d847c8b0092f0b7a03479cf /include/svl
parentbcd27039eec660fce2abd7604cdb8cd36ae4cdba (diff)
add GetItemState to SfxItemIter, the same way I did to SfxWhichIter
to speed up GetItemState while iterating Change-Id: Ibe092e7581a5be0160eed52472122afe7e0ef377 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135076 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/svl')
-rw-r--r--include/svl/itemiter.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/svl/itemiter.hxx b/include/svl/itemiter.hxx
index be2bf2e4360d..dfe3c9dc6e22 100644
--- a/include/svl/itemiter.hxx
+++ b/include/svl/itemiter.hxx
@@ -47,6 +47,9 @@ public:
sal_uInt16 GetFirstPos() const { return m_nStart; }
sal_uInt16 GetLastPos() const { return m_nEnd; }
+ SfxItemState GetItemState(bool bSrchInParent = true,
+ const SfxPoolItem** ppItem = nullptr) const;
+
private:
const SfxPoolItem* ImplNextItem();
};