Prefer prefix ++/-- operators for non-primitive types
+ convert while loop into for loop Change-Id: I64c2379c28d3c1074ed17129152568371680db19
This commit is contained in:
@@ -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();
|
||||||
|
Reference in New Issue
Block a user