[Libreoffice-commits] .: editeng/source slideshow/source xmlsecurity/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sat Apr 7 16:02:56 PDT 2012


 editeng/source/editeng/impedit3.cxx                   |    2 +-
 slideshow/source/engine/slideshowimpl.cxx             |    2 +-
 xmlsecurity/source/helper/documentsignaturehelper.cxx |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit a16060116346533923c607bd406d3fea511b41ec
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Apr 8 01:01:31 2012 +0200

    Fix Prefer prefix ++/-- operators

diff --git a/editeng/source/editeng/impedit3.cxx b/editeng/source/editeng/impedit3.cxx
index a380c08..46cfe04 100644
--- a/editeng/source/editeng/impedit3.cxx
+++ b/editeng/source/editeng/impedit3.cxx
@@ -2349,7 +2349,7 @@ void ImpEditEngine::CreateTextPortions( ParaPortion* pParaPortion, sal_uInt16& r
     DBG_ASSERT( (nInvPos != aPositions.end()), "InvPos ?!" );
 
     ::std::set< sal_uInt32 >::iterator i = nInvPos;
-    i++;
+    ++i;
     while ( i != aPositions.end() )
     {
         TextPortion* pNew = new TextPortion( static_cast<sal_uInt16>(*i++) - static_cast<sal_uInt16>(*nInvPos++) );
diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx
index ca91a6c..7718019 100644
--- a/slideshow/source/engine/slideshowimpl.cxx
+++ b/slideshow/source/engine/slideshowimpl.cxx
@@ -902,7 +902,7 @@ PolygonMap::iterator SlideShowImpl::findPolygons( uno::Reference<drawing::XDrawP
         if(aIter->first == xDrawPage)
             bFound = true;
         else
-            aIter++;
+            ++aIter;
     }
 
     return aIter;
diff --git a/xmlsecurity/source/helper/documentsignaturehelper.cxx b/xmlsecurity/source/helper/documentsignaturehelper.cxx
index 7523bf1..8b10f03 100644
--- a/xmlsecurity/source/helper/documentsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/documentsignaturehelper.cxx
@@ -374,7 +374,7 @@ bool DocumentSignatureHelper::checkIfAllFilesAreSigned(
 
             //find the file in the element list
             typedef ::std::vector< ::rtl::OUString >::const_iterator CIT;
-            for (CIT aIter = sElementList.begin(); aIter < sElementList.end(); aIter++)
+            for (CIT aIter = sElementList.begin(); aIter != sElementList.end(); ++aIter)
             {
                 ::rtl::OUString sElementListURI = *aIter;
                 if (alg == OOo2Document)


More information about the Libreoffice-commits mailing list