[Libreoffice-commits] core.git: svl/source

Tor Lillqvist tml at collabora.com
Wed May 28 12:33:55 PDT 2014


 svl/source/notify/lstner.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 04263067ceee7b48f2782e5fdcc515c9d447ff5a
Author: Tor Lillqvist <tml at collabora.com>
Date:   Wed May 28 22:30:41 2014 +0300

    This needs to be debugged and understood, not just randomly "fixed"
    
    This reverts commit 72827968e606adcdf8c16e5381b887180975ae46.
    
    Change-Id: Ie79bb1d57d05c0a1e51733bacc1b103f44ddc153

diff --git a/svl/source/notify/lstner.cxx b/svl/source/notify/lstner.cxx
index 562f42c..606b9a6 100644
--- a/svl/source/notify/lstner.cxx
+++ b/svl/source/notify/lstner.cxx
@@ -59,9 +59,7 @@ SfxListener::~SfxListener()
 
 void SfxListener::RemoveBroadcaster_Impl( SfxBroadcaster& rBroadcaster )
 {
-    SfxBroadcasterArr_Impl::iterator aIter = std::find( aBCs.begin(), aBCs.end(), &rBroadcaster );
-    if ( aIter != aBCs.end() )
-        aBCs.erase( aIter );
+    aBCs.erase( std::find( aBCs.begin(), aBCs.end(), &rBroadcaster ) );
 }
 
 


More information about the Libreoffice-commits mailing list