[Libreoffice-commits] .: sw/source

Kohei Yoshida kohei at kemper.freedesktop.org
Mon Jan 3 20:45:20 PST 2011


 sw/source/ui/index/cntex.cxx   |    2 +-
 sw/source/ui/index/cnttab.cxx  |    4 ++--
 sw/source/ui/misc/redlndlg.cxx |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 51c04abacdd11ff34bf22397d717ff85c05098fb
Author: Kayo Hamid <kayo.hamid at gekkolinux.com.br>
Date:   Mon Jan 3 23:44:51 2011 -0500

    cppcheck: prefer prefix increment on iterators.

diff --git a/sw/source/ui/index/cntex.cxx b/sw/source/ui/index/cntex.cxx
index 2b858e3..bcca510 100644
--- a/sw/source/ui/index/cntex.cxx
+++ b/sw/source/ui/index/cntex.cxx
@@ -423,7 +423,7 @@ void SwMultiTOXTabDialog::CreateOrUpdateExample(
                         pValues[nTokenIndex] = aPropVals;
                         nTokenIndex++;
 
-                        aIt++; // #i24377#
+                        ++aIt; // #i24377#
                     }
                     aSequPropVals.realloc(nTokenIndex);
 
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index 24bd655..4b2b4c9 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -2497,7 +2497,7 @@ IMPL_LINK(SwTOXEntryTabPage, LevelHdl, SvTreeListBox*, pBox)
                 aAuthFieldsLB.RemoveEntry(nLstBoxPos);
             }
 
-            aIt++; // #i21237#
+            ++aIt; // #i21237#
         }
         aAuthFieldsLB.SelectEntryPos(0);
     }
@@ -2916,7 +2916,7 @@ void	SwTokenWindow::SetForm(SwForm& rForm, sal_uInt16 nL)
                 bLastWasText = sal_False;
             }
 
-            aIt++; // #i21237#
+            ++aIt; // #i21237#
         }
         if(!bLastWasText)
         {
diff --git a/sw/source/ui/misc/redlndlg.cxx b/sw/source/ui/misc/redlndlg.cxx
index 0169751..2752bbf 100644
--- a/sw/source/ui/misc/redlndlg.cxx
+++ b/sw/source/ui/misc/redlndlg.cxx
@@ -861,7 +861,7 @@ void SwRedlineAcceptDlg::CallAcceptReject( BOOL bSelect, BOOL bAccept )
     ListBoxEntries_t::iterator aEnd = aRedlines.end();
     for( ListBoxEntries_t::iterator aIter = aRedlines.begin();
          aIter != aEnd;
-         aIter++ )
+         ++aIter )
     {
         USHORT nPosition = GetRedlinePos( **aIter );
         if( nPosition != USHRT_MAX )


More information about the Libreoffice-commits mailing list