Kaydet (Commit) ca1456d3 authored tarafından Julien Nabet's avatar Julien Nabet

Bin bool + transform while into for loop + add end iterator (2)

Change-Id: Ic4b311c06b809507ac80de5df9851dc7f36c7caa
üst 591092d3
...@@ -823,18 +823,17 @@ void SAL_CALL ThumbnailViewItemAcc::removeAccessibleEventListener( const uno::Re ...@@ -823,18 +823,17 @@ void SAL_CALL ThumbnailViewItemAcc::removeAccessibleEventListener( const uno::Re
if( rxListener.is() ) if( rxListener.is() )
{ {
::std::vector< uno::Reference< accessibility::XAccessibleEventListener > >::iterator aIter = mxEventListeners.begin(); ::std::vector< uno::Reference< accessibility::XAccessibleEventListener > >::const_iterator aEnd = mxEventListeners.end();
sal_Bool bFound = sal_False;
while( !bFound && ( aIter != mxEventListeners.end() ) ) for (::std::vector< uno::Reference< accessibility::XAccessibleEventListener > >::iterator aIter = mxEventListeners.begin();
aIter != aEnd;
++aIter)
{ {
if( *aIter == rxListener ) if( *aIter == rxListener )
{ {
mxEventListeners.erase( aIter ); mxEventListeners.erase( aIter );
bFound = sal_True; break;
} }
else
++aIter;
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment