diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-05-28 16:53:01 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-28 17:37:07 +0200 |
commit | 51f46ddaccd9a2c16b6a4a80b7627af7b13850f4 (patch) | |
tree | 18dfa4fd6de107332d847c8b0092f0b7a03479cf /include/svl/itemiter.hxx | |
parent | bcd27039eec660fce2abd7604cdb8cd36ae4cdba (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/itemiter.hxx')
-rw-r--r-- | include/svl/itemiter.hxx | 3 |
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(); }; |