vcl/source/app/session.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 21fbeebc8e9cd264e42e76022607851391ce3868
Author: Julien Nabet <serval2...@yahoo.fr>
Date:   Sun Aug 25 20:04:11 2013 +0200

    Simplify iterator management
    
    Change-Id: Ib1aaafe82c0a316d3a047a00940f65a818993321

diff --git a/vcl/source/app/session.cxx b/vcl/source/app/session.cxx
index 9c0f30b..8f1ab9e 100644
--- a/vcl/source/app/session.cxx
+++ b/vcl/source/app/session.cxx
@@ -249,8 +249,7 @@ void SAL_CALL VCLSession::removeSessionManagerListener( 
const css::uno::Referenc
     {
         if( it->m_xListener == xListener )
         {
-            m_aListeners.erase( it );
-            it = m_aListeners.begin();
+            it = m_aListeners.erase(it);
         }
         else
             ++it;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to