From bcd27039eec660fce2abd7604cdb8cd36ae4cdba Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sat, 28 May 2022 13:36:41 +0200 Subject: use the new SfxWhichIter::GetItemState feature to speed up other places that are iterating over SfxItemSets Change-Id: I646bae12420d15e67effdd279e071cdf8a8afffd Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135075 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/core/tool/detfunc.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/source/core/tool/detfunc.cxx') diff --git a/sc/source/core/tool/detfunc.cxx b/sc/source/core/tool/detfunc.cxx index eabc91a3c4bb..9e700f41184e 100644 --- a/sc/source/core/tool/detfunc.cxx +++ b/sc/source/core/tool/detfunc.cxx @@ -242,7 +242,7 @@ void ScCommentData::UpdateCaptionSet( const SfxItemSet& rItemSet ) for( sal_uInt16 nWhich = aWhichIter.FirstWhich(); nWhich > 0; nWhich = aWhichIter.NextWhich() ) { - if(rItemSet.GetItemState(nWhich, false, &pPoolItem) == SfxItemState::SET) + if(aWhichIter.GetItemState(false, &pPoolItem) == SfxItemState::SET) { switch(nWhich) { -- cgit