diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-05-28 13:36:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-28 17:36:49 +0200 |
commit | bcd27039eec660fce2abd7604cdb8cd36ae4cdba (patch) | |
tree | 66aaecdf872ac6ee80142e2141b490b5d1a49880 /sw/source/filter/writer/wrt_fn.cxx | |
parent | 9896f330cdb3df67b74b16a2c2177a8505fd2485 (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/filter/writer/wrt_fn.cxx')
-rw-r--r-- | sw/source/filter/writer/wrt_fn.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/writer/wrt_fn.cxx b/sw/source/filter/writer/wrt_fn.cxx index 7935ef672671..601b61190fa9 100644 --- a/sw/source/filter/writer/wrt_fn.cxx +++ b/sw/source/filter/writer/wrt_fn.cxx @@ -88,7 +88,7 @@ Writer& Out_SfxItemSet( const SwAttrFnTab pTab, Writer& rWrt, sal_uInt16 nWhich = aIter.FirstWhich(); while( nWhich ) { - if( SfxItemState::SET == pSet->GetItemState( nWhich, bDeep, &pItem ) && + if( SfxItemState::SET == aIter.GetItemState( bDeep, &pItem ) && ( *pItem != rPool.GetDefaultItem( nWhich ) || ( pSet->GetParent() && *pItem != pSet->GetParent()->Get( nWhich )) |