summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/access/accmap.cxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/sw/source/core/access/accmap.cxx b/sw/source/core/access/accmap.cxx
index 7449a394c87b..1f0fec976995 100644
--- a/sw/source/core/access/accmap.cxx
+++ b/sw/source/core/access/accmap.cxx
@@ -527,17 +527,12 @@ void SwAccessibleEventList_Impl::MoveInvalidXAccToEnd()
return;
}
SwAccessibleEventList_Impl lstEvent;
- iterator li = begin();
- for ( ;li != end();)
+ for (iterator li = begin(); li != end(); )
{
- SwAccessibleEvent_Impl e = *li;
- if (e.IsNoXaccParentFrame())
+ if (li->IsNoXaccParentFrame())
{
- iterator liNext = li;
- ++liNext;
- erase(li);
- li = liNext;
- lstEvent.insert(lstEvent.end(),e);
+ lstEvent.insert(lstEvent.end(), *li);
+ li = erase(li);
}
else
++li;