diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-10-01 00:21:00 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-10-01 06:35:49 +0200 |
commit | 981654f6e0d57c2c6dd1bbf740a6b67941146497 (patch) | |
tree | f7cf40ccf38d4666280b647c77ea7859e97f89e4 /chart2/source/controller | |
parent | 1fc63383ccd8af144d681ba405f5ead863ac24e1 (diff) |
Drop SfxItemIter::FirstItem
It is always used right after the iterator is created, where simple
GetCurItem gives the same value without reseting the position.
Change-Id: I871dc7989b79e13f06436ef7928692645b5209f6
Reviewed-on: https://gerrit.libreoffice.org/79903
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'chart2/source/controller')
-rw-r--r-- | chart2/source/controller/itemsetwrapper/ItemConverter.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx index e94875b704a4..0a27a52392da 100644 --- a/chart2/source/controller/itemsetwrapper/ItemConverter.cxx +++ b/chart2/source/controller/itemsetwrapper/ItemConverter.cxx @@ -154,11 +154,10 @@ bool ItemConverter::ApplyItemSet( const SfxItemSet & rItemSet ) bool bItemsChanged = false; SfxItemIter aIter( rItemSet ); - const SfxPoolItem * pItem = aIter.FirstItem(); tPropertyNameWithMemberId aProperty; uno::Any aValue; - while( pItem ) + for (const SfxPoolItem* pItem = aIter.GetCurItem(); pItem; pItem = aIter.NextItem()) { if( rItemSet.GetItemState( pItem->Which(), false ) == SfxItemState::SET ) { @@ -188,7 +187,6 @@ bool ItemConverter::ApplyItemSet( const SfxItemSet & rItemSet ) bItemsChanged = ApplySpecialItem( pItem->Which(), rItemSet ) || bItemsChanged; } } - pItem = aIter.NextItem(); } return bItemsChanged; |