[Libreoffice-commits] .: 3 commits - starmath/qa sw/source

Caolán McNamara caolan at kemper.freedesktop.org
Fri Dec 24 05:41:02 PST 2010


 starmath/qa/cppunit/test_nodetotextvisitors.cxx |    2 +-
 sw/source/core/doc/docbm.cxx                    |    2 +-
 sw/source/ui/vba/vbarevisions.cxx               |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6cfa9f44501a2ed6f19f60d672367ac6c297003c
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Dec 24 13:40:55 2010 +0000

    relocate this header inside guards

diff --git a/starmath/qa/cppunit/test_nodetotextvisitors.cxx b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
index fc5552a..9fa5ec0 100644
--- a/starmath/qa/cppunit/test_nodetotextvisitors.cxx
+++ b/starmath/qa/cppunit/test_nodetotextvisitors.cxx
@@ -41,13 +41,13 @@
 #include <cppunit/TestCase.h>
 #include <cppunit/plugin/TestPlugIn.h>
 #include <cppunit/extensions/HelperMacros.h>
+#include <cppunit/TestAssert.h>
 #include "postextstl.h"
 
 #include <sal/config.h>
 
 #include <cppuhelper/bootstrap.hxx>
 #include <comphelper/processfactory.hxx>
-#include <cppunit/TestAssert.h>
 
 #include <vcl/svapp.hxx>
 #include <smdll.hxx>
commit f79f45d25af89a1be487a509f6c689fd303189aa
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Dec 24 13:29:49 2010 +0000

    cppcheck: prefer prefix variant

diff --git a/sw/source/ui/vba/vbarevisions.cxx b/sw/source/ui/vba/vbarevisions.cxx
index 5833dea..4fe40e4 100644
--- a/sw/source/ui/vba/vbarevisions.cxx
+++ b/sw/source/ui/vba/vbarevisions.cxx
@@ -157,7 +157,7 @@ void SAL_CALL SwVbaRevisions::AcceptAll(  ) throw (css::uno::RuntimeException)
     }
 
     std::vector< uno::Reference< word::XRevision > >::iterator it = aRevisions.begin();
-    for( ; it != aRevisions.end(); it++ )
+    for( ; it != aRevisions.end(); ++it )
     {
         uno::Reference< word::XRevision > xRevision( *it );
         xRevision->Accept();
commit 1df75f9f00e1b69beadd1d5d1d67e21d0c66e20f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Dec 24 13:28:41 2010 +0000

    cppcheck: prefer prefix variant

diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index a621e1a..d4eaaa2 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -672,7 +672,7 @@ namespace sw { namespace mark
         // behind it (the iterators in vMarksToDelete are sorted)
         for(vector<const_iterator_t>::reverse_iterator pppMark = vMarksToDelete.rbegin();
             pppMark != vMarksToDelete.rend();
-            pppMark++)
+            ++pppMark)
         {
             deleteMark(*pppMark);
         }


More information about the Libreoffice-commits mailing list