summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filter/source/flash/swfwriter.cxx3
-rw-r--r--filter/source/flash/swfwriter1.cxx4
2 files changed, 2 insertions, 5 deletions
diff --git a/filter/source/flash/swfwriter.cxx b/filter/source/flash/swfwriter.cxx
index d7b20762a8e1..1d4704b74062 100644
--- a/filter/source/flash/swfwriter.cxx
+++ b/filter/source/flash/swfwriter.cxx
@@ -364,10 +364,9 @@ sal_uInt16 Writer::defineShape( const GDIMetaFile& rMtf, sal_Int16 x, sal_Int16
nId = startSprite();
sal_uInt16 iDepth = 1;
- while( aIter != aEnd )
+ for(; aIter != aEnd; ++aIter)
{
placeShape( *aIter, iDepth++, x, y );
- aIter++;
}
endSprite();
diff --git a/filter/source/flash/swfwriter1.cxx b/filter/source/flash/swfwriter1.cxx
index 3f20b6cab766..d43569e8e9a5 100644
--- a/filter/source/flash/swfwriter1.cxx
+++ b/filter/source/flash/swfwriter1.cxx
@@ -407,15 +407,13 @@ FlashFont& Writer::Impl_getFont( const Font& rFont )
FontMap::iterator aIter( maFonts.begin() );
const FontMap::iterator aEnd( maFonts.end() );
- while( aIter != aEnd )
+ for(; aIter != aEnd; ++aIter)
{
const Font tempFont = (*aIter)->getFont();
if( compare_fonts_for_me(tempFont, rFont) )
{
return **aIter;
}
-
- aIter++;
}
FlashFont* pFont = new FlashFont( rFont, createID() );