summaryrefslogtreecommitdiff
path: root/filter
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-04-29 16:46:56 +0200
committerJulien Nabet <serval2412@yahoo.fr>2012-04-29 16:48:07 +0200
commitb6aeba0de214b8331134aad25717c1cfae271a48 (patch)
treeb861cf679fbe8fdc9123f3c80eedbf494b79acfd /filter
parent05d470cd4990aa4a0e885fb0ca126a71aed4d814 (diff)
Prefix ++/-- operators for non-primitive types
Change-Id: Ie64f5393fb285431401bf3c19fc4c25c7085dd04
Diffstat (limited to 'filter')
-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() );