summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-09-30 11:37:40 +0200
committerMike Kaganski <mike.kaganski@collabora.com>2019-09-30 14:24:20 +0200
commit227734f528979fb12733d1ea6c4a951fbfa17bd8 (patch)
tree72d5bee4eb8115713956ffb0db2f5229da05b895 /sw
parent8e2e03b1c36375735c4fcfa44ba762d0cbc4ef29 (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 'sw')
-rw-r--r--sw/source/core/undo/rolbck.cxx2
1 files changed, 0 insertions, 2 deletions
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();
}
}