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 else
mpOutStrm->SeekRel( nSize ); mpOutStrm->SeekRel( nSize );
} }
std::vector< sal_uInt32 >::iterator aIter( mOffsets.begin() ); for (std::vector< sal_uInt32 >::iterator aIter( mOffsets.begin() ), aEnd( mOffsets.end() ); aIter != aEnd ; ++aIter)
std::vector< sal_uInt32 >::iterator aEnd( mOffsets.end() );
while( aIter != aEnd )
{ {
if ( *aIter > nCurPos ) if ( *aIter > nCurPos )
*aIter += nBytes; *aIter += nBytes;
aIter++;
} }
mpOutStrm->Seek( STREAM_SEEK_TO_END ); mpOutStrm->Seek( STREAM_SEEK_TO_END );
nSource = mpOutStrm->Tell(); nSource = mpOutStrm->Tell();