From bca67a76b00ec7234b6a414a9772c9a7cacd8fd7 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Sat, 30 Mar 2013 15:55:54 +0100 Subject: [PATCH] Prefer prefix ++/-- operators for non-primitive types + convert while loop into for loop Change-Id: I64c2379c28d3c1074ed17129152568371680db19 --- filter/source/msfilter/escherex.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx index 0f99932dc20c..9c9d7276e180 100644 --- a/filter/source/msfilter/escherex.cxx +++ b/filter/source/msfilter/escherex.cxx @@ -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();