[Libreoffice-commits] .: sw/source writerperfect/source

Julien Nabet serval2412 at kemper.freedesktop.org
Thu Sep 15 13:03:06 PDT 2011


 sw/source/ui/docvw/edtwin.cxx                |    6 +++---
 writerperfect/source/filter/OdgGenerator.cxx |   12 ++++++------
 2 files changed, 9 insertions(+), 9 deletions(-)

New commits:
commit a5745e9e730ad39b590781f38884479072ee6f9d
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Thu Sep 15 22:01:51 2011 +0200

    Some cppcheck cleaning

diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx
index 41d7761..5ea839e 100644
--- a/sw/source/ui/docvw/edtwin.cxx
+++ b/sw/source/ui/docvw/edtwin.cxx
@@ -5744,7 +5744,7 @@ void SwEditWin::SetHeaderFooterControl( const SwPageFrm* pPageFrm, bool bHeader,
         if ( ( *pIt )->GetPageFrame( ) == pPageFrm &&
              ( *pIt )->IsHeader( ) == bHeader )
             pControl = *pIt;
-        pIt++;
+        ++pIt;
     }
 
     if ( !pControl.get() )
@@ -5771,7 +5771,7 @@ void SwEditWin::HideHeaderFooterControls( )
     while ( pIt != aHeadFootControls.end() )
     {
         ( *pIt )->Hide();
-        pIt++;
+        ++pIt;
     }
 }
 
@@ -5781,7 +5781,7 @@ void SwEditWin::SetReadonlyHeaderFooterControls( bool bReadonly )
     while ( pIt != aHeadFootControls.end() )
     {
         ( *pIt )->SetReadonly( bReadonly );
-        pIt++;
+        ++pIt;
     }
 }
 
diff --git a/writerperfect/source/filter/OdgGenerator.cxx b/writerperfect/source/filter/OdgGenerator.cxx
index 795e3ac..9b12cbc 100644
--- a/writerperfect/source/filter/OdgGenerator.cxx
+++ b/writerperfect/source/filter/OdgGenerator.cxx
@@ -345,19 +345,19 @@ OdgGeneratorPrivate::~OdgGeneratorPrivate()
     }
 
    for (std::map<WPXString, ParagraphStyle*, ltstr>::iterator iterParagraphStyles = mParagraphStyles.begin();
-      iterParagraphStyles != mParagraphStyles.end(); iterParagraphStyles++)
+      iterParagraphStyles != mParagraphStyles.end(); ++iterParagraphStyles)
    {
       delete(iterParagraphStyles->second);
    }
 
    for (std::map<WPXString, SpanStyle*, ltstr>::iterator iterSpanStyles = mSpanStyles.begin();
-      iterSpanStyles != mSpanStyles.end(); iterSpanStyles++)
+      iterSpanStyles != mSpanStyles.end(); ++iterSpanStyles)
    {
       delete(iterSpanStyles->second);
    }
 
     for (std::map<WPXString, FontStyle *, ltstr>::iterator iterFont = mFontStyles.begin();
-        iterFont != mFontStyles.end(); iterFont++)
+        iterFont != mFontStyles.end(); ++iterFont)
     {
         delete(iterFont->second);
     }
@@ -458,7 +458,7 @@ OdgGenerator::~OdgGenerator()
         TagOpenElement("office:font-face-decls").write(mpImpl->mpHandler);
 
         for (std::map<WPXString, FontStyle *, ltstr>::iterator iterFont = mpImpl->mFontStyles.begin();
-            iterFont != mpImpl->mFontStyles.end(); iterFont++)
+            iterFont != mpImpl->mFontStyles.end(); ++iterFont)
         {
             iterFont->second->write(mpImpl->mpHandler);
         }
@@ -484,12 +484,12 @@ OdgGenerator::~OdgGenerator()
             (*iterGraphicsAutomaticStyles)->write(mpImpl->mpHandler);
         }
       for (std::map<WPXString, ParagraphStyle*, ltstr>::iterator iterParagraphStyles = mpImpl->mParagraphStyles.begin();
-         iterParagraphStyles != mpImpl->mParagraphStyles.end(); iterParagraphStyles++)
+         iterParagraphStyles != mpImpl->mParagraphStyles.end(); ++iterParagraphStyles)
       {
          (iterParagraphStyles->second)->write(mpImpl->mpHandler);
       }
       for (std::map<WPXString, SpanStyle*, ltstr>::iterator iterSpanStyles = mpImpl->mSpanStyles.begin();
-         iterSpanStyles != mpImpl->mSpanStyles.end(); iterSpanStyles++)
+         iterSpanStyles != mpImpl->mSpanStyles.end(); ++iterSpanStyles)
       {
          (iterSpanStyles->second)->write(mpImpl->mpHandler);
       }


More information about the Libreoffice-commits mailing list