diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-08-27 06:48:12 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-08-27 06:48:12 +0200 |
commit | 591092d3f1409360be0be793462527b577539cc4 (patch) | |
tree | c66972f37ca808b48bebbeabe10a14bc49e41ec6 /sfx2/source/control/thumbnailviewacc.cxx | |
parent | 932dbfd2d12f5526e4d60fc4f17085872e6b8648 (diff) |
Bin bool + transform while into for loop + add end iterator
Change-Id: I2661aab4f7a438586485b039033f7246b6f5e907
Diffstat (limited to 'sfx2/source/control/thumbnailviewacc.cxx')
-rw-r--r-- | sfx2/source/control/thumbnailviewacc.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx index fc4311536262..21b15be4d347 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; } } } |