Prefer prefix ++/-- operators for non-primitive types

+ convert while loop into for loop

Change-Id: I64c2379c28d3c1074ed17129152568371680db19
This commit is contained in:
Julien Nabet 2013-03-30 15:55:54 +01:00
parent ce9bf0f868
commit bca67a76b0

View File

@ -4523,13 +4523,10 @@ void EscherEx::InsertAtCurrentPos( sal_uInt32 nBytes, bool bExpandEndOfAtom )
else
mpOutStrm->SeekRel( nSize );
}
std::vector< sal_uInt32 >::iterator aIter( mOffsets.begin() );
std::vector< sal_uInt32 >::iterator aEnd( mOffsets.end() );
while( aIter != aEnd )
for (std::vector< sal_uInt32 >::iterator aIter( mOffsets.begin() ), aEnd( mOffsets.end() ); aIter != aEnd ; ++aIter)
{
if ( *aIter > nCurPos )
*aIter += nBytes;
aIter++;
}
mpOutStrm->Seek( STREAM_SEEK_TO_END );
nSource = mpOutStrm->Tell();