diff options
-rw-r--r-- | svl/source/items/itemiter.cxx | 3 | ||||
-rw-r--r-- | sw/source/core/undo/rolbck.cxx | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/svl/source/items/itemiter.cxx b/svl/source/items/itemiter.cxx index 2285122e0d87..aaedcf26ae33 100644 --- a/svl/source/items/itemiter.cxx +++ b/svl/source/items/itemiter.cxx @@ -52,10 +52,9 @@ SfxItemIter::~SfxItemIter() const SfxPoolItem* SfxItemIter::NextItem() { - SfxPoolItem const** ppFnd = m_rSet.m_pItems.get(); - if (m_nCurrent < m_nEnd) { + SfxPoolItem const** ppFnd = m_rSet.m_pItems.get(); do { m_nCurrent++; } while (m_nCurrent < m_nEnd && !*(ppFnd + m_nCurrent )); diff --git a/sw/source/core/undo/rolbck.cxx b/sw/source/core/undo/rolbck.cxx index 77e594e9dafc..2fbc1356f4cf 100644 --- a/sw/source/core/undo/rolbck.cxx +++ b/sw/source/core/undo/rolbck.cxx @@ -1450,8 +1450,6 @@ void SwRegHistory::MakeSetWhichIds() { sal_uInt16 nW = pItem->Which(); m_WhichIdSet.insert( nW ); - if( aIter.IsAtEnd() ) - break; pItem = aIter.NextItem(); } } |