summaryrefslogtreecommitdiff
path: root/svl/source/items/itemiter.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/items/itemiter.cxx')
-rw-r--r--svl/source/items/itemiter.cxx17
1 files changed, 7 insertions, 10 deletions
diff --git a/svl/source/items/itemiter.cxx b/svl/source/items/itemiter.cxx
index aaedcf26ae33..fe0ee377f439 100644
--- a/svl/source/items/itemiter.cxx
+++ b/svl/source/items/itemiter.cxx
@@ -50,17 +50,14 @@ SfxItemIter::~SfxItemIter()
{
}
-const SfxPoolItem* SfxItemIter::NextItem()
+// Precondition : m_nCurrent < m_nEnd
+const SfxPoolItem* SfxItemIter::ImplNextItem()
{
- if (m_nCurrent < m_nEnd)
- {
- SfxPoolItem const** ppFnd = m_rSet.m_pItems.get();
- do {
- m_nCurrent++;
- } while (m_nCurrent < m_nEnd && !*(ppFnd + m_nCurrent ));
- return *(ppFnd+m_nCurrent);
- }
- return nullptr;
+ SfxPoolItem const** ppFnd = m_rSet.m_pItems.get();
+ do {
+ m_nCurrent++;
+ } while (m_nCurrent < m_nEnd && !*(ppFnd + m_nCurrent ));
+ return *(ppFnd+m_nCurrent);
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */