[Libreoffice-commits] core.git: sfx2/source
Julien Nabet
serval2412 at yahoo.fr
Mon Aug 26 21:48:41 PDT 2013
sfx2/source/control/thumbnailviewacc.cxx | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
New commits:
commit 591092d3f1409360be0be793462527b577539cc4
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Tue Aug 27 06:48:12 2013 +0200
Bin bool + transform while into for loop + add end iterator
Change-Id: I2661aab4f7a438586485b039033f7246b6f5e907
diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx
index fc43115..21b15be 100644
--- a/sfx2/source/control/thumbnailviewacc.cxx
+++ b/sfx2/source/control/thumbnailviewacc.cxx
@@ -307,18 +307,17 @@ void SAL_CALL ThumbnailViewAcc::removeAccessibleEventListener( const uno::Refere
if( rxListener.is() )
{
- std::vector< uno::Reference< accessibility::XAccessibleEventListener > >::iterator aIter = mxEventListeners.begin();
- bool bFound = false;
+ std::vector< uno::Reference< accessibility::XAccessibleEventListener > >::const_iterator aEnd = mxEventListeners.end();
- while( !bFound && ( aIter != mxEventListeners.end() ) )
+ for (std::vector< uno::Reference< accessibility::XAccessibleEventListener > >::iterator aIter = mxEventListeners.begin();
+ aIter != aEnd;
+ ++aIter)
{
if( *aIter == rxListener )
{
mxEventListeners.erase( aIter );
- bFound = true;
+ break;
}
- else
- ++aIter;
}
}
}
More information about the Libreoffice-commits
mailing list