[Libreoffice-commits] .: filter/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sun Apr 29 07:48:41 PDT 2012


 filter/source/flash/swfwriter.cxx  |    3 +--
 filter/source/flash/swfwriter1.cxx |    4 +---
 2 files changed, 2 insertions(+), 5 deletions(-)

New commits:
commit b6aeba0de214b8331134aad25717c1cfae271a48
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Apr 29 16:46:56 2012 +0200

    Prefix ++/-- operators for non-primitive types
    
    Change-Id: Ie64f5393fb285431401bf3c19fc4c25c7085dd04

diff --git a/filter/source/flash/swfwriter.cxx b/filter/source/flash/swfwriter.cxx
index d7b2076..1d4704b 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 3f20b6c..d43569e 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() );


More information about the Libreoffice-commits mailing list