summaryrefslogtreecommitdiff
path: root/unoxml
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-05-05 09:44:22 +0200
committerJulien Nabet <serval2412@yahoo.fr>2019-05-05 10:57:27 +0200
commitadafd453c564a65eb3b9c435e457c7ee7131b737 (patch)
tree05059b9c20aed02c2bf358de65679ffec124cce7 /unoxml
parent65a60e13bb17d2653ff867f095c1590cc1a41c49 (diff)
Use returned iterator from erase
Change-Id: I1ae4e4d0adc467f1bcce08fdd07a5dbf94c3111c Reviewed-on: https://gerrit.libreoffice.org/71815 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'unoxml')
-rw-r--r--unoxml/source/events/eventdispatcher.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/unoxml/source/events/eventdispatcher.cxx b/unoxml/source/events/eventdispatcher.cxx
index b5d5ef705b31..40a08305bfd0 100644
--- a/unoxml/source/events/eventdispatcher.cxx
+++ b/unoxml/source/events/eventdispatcher.cxx
@@ -69,9 +69,7 @@ namespace DOM { namespace events {
// erase all references to specified listener
if (iter->second.is() && iter->second == aListener)
{
- ListenerMap::iterator tmp_iter = iter;
- ++iter;
- rMap.erase(tmp_iter);
+ iter = rMap.erase(iter);
}
else
++iter;