[Libreoffice-commits] core.git: sfx2/source
Julien Nabet
serval2412 at yahoo.fr
Mon Aug 26 21:51:38 PDT 2013
sfx2/source/control/thumbnailviewacc.cxx | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
New commits:
commit ca1456d3c29483298a829be0f04decb5d894b585
Author: Julien Nabet <serval2412 at yahoo.fr>
Date: Tue Aug 27 06:51:10 2013 +0200
Bin bool + transform while into for loop + add end iterator (2)
Change-Id: Ic4b311c06b809507ac80de5df9851dc7f36c7caa
diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx
index 21b15be..b398186 100644
--- a/sfx2/source/control/thumbnailviewacc.cxx
+++ b/sfx2/source/control/thumbnailviewacc.cxx
@@ -823,18 +823,17 @@ void SAL_CALL ThumbnailViewItemAcc::removeAccessibleEventListener( const uno::Re
if( rxListener.is() )
{
- ::std::vector< uno::Reference< accessibility::XAccessibleEventListener > >::iterator aIter = mxEventListeners.begin();
- sal_Bool bFound = sal_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 = sal_True;
+ break;
}
- else
- ++aIter;
}
}
}
More information about the Libreoffice-commits
mailing list