diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-09-30 11:37:40 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-09-30 14:24:20 +0200 |
commit | 227734f528979fb12733d1ea6c4a951fbfa17bd8 (patch) | |
tree | 72d5bee4eb8115713956ffb0db2f5229da05b895 /svl/source/items | |
parent | 8e2e03b1c36375735c4fcfa44ba762d0cbc4ef29 (diff) |
Simplify iterating in SwRegHistory::MakeSetWhichIds a little
The IsAtEnd check is redundant here.
Change-Id: Ie576d039ea3db5f98d9c8c3dfd7e77519fcc1e1d
Reviewed-on: https://gerrit.libreoffice.org/79836
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'svl/source/items')
-rw-r--r-- | svl/source/items/itemiter.cxx | 3 |
1 files changed, 1 insertions, 2 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 )); |