summaryrefslogtreecommitdiff
path: root/svl
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2014-05-28 22:30:41 +0300
committerTor Lillqvist <tml@collabora.com>2014-05-28 22:31:44 +0300
commit04263067ceee7b48f2782e5fdcc515c9d447ff5a (patch)
tree28c9d50b4be53140367300cdc062161ebe0c1d60 /svl
parent2574a22a5be7f4cbc995c3fd0f22c8cc2a551c9a (diff)
This needs to be debugged and understood, not just randomly "fixed"
This reverts commit 72827968e606adcdf8c16e5381b887180975ae46. Change-Id: Ie79bb1d57d05c0a1e51733bacc1b103f44ddc153
Diffstat (limited to 'svl')
-rw-r--r--svl/source/notify/lstner.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/svl/source/notify/lstner.cxx b/svl/source/notify/lstner.cxx
index 562f42c3da60..606b9a609c10 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 ) );
}