[Libreoffice-commits] .: forms/source sw/source tools/source xmloff/source

Julien Nabet serval2412 at kemper.freedesktop.org
Fri Aug 10 13:36:59 PDT 2012


 forms/source/xforms/namedcollection.hxx       |    4 ++--
 sw/source/core/crsr/crstrvl.cxx               |    4 ++--
 sw/source/core/fields/docufld.cxx             |    4 ++--
 tools/source/memtools/unqidx.cxx              |    2 +-
 xmloff/source/text/XMLPropertyBackpatcher.cxx |    4 ++--
 5 files changed, 9 insertions(+), 9 deletions(-)

New commits:
commit 9b85b65fb5367b4a5d1c2bd1eed14e3bafe45405
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Aug 10 22:35:46 2012 +0200

    Prefer prefix ++/-- operators for non-primitive types
    
    Change-Id: Ic8d149a78b2bc2bf352b7893202d0d0b6730746c

diff --git a/forms/source/xforms/namedcollection.hxx b/forms/source/xforms/namedcollection.hxx
index d34cb92..5f9c808 100644
--- a/forms/source/xforms/namedcollection.hxx
+++ b/forms/source/xforms/namedcollection.hxx
@@ -57,7 +57,7 @@ public:
         std::vector<rtl::OUString> aNames;
         for( typename std::vector<T>::const_iterator aIter = maItems.begin();
              aIter != maItems.end();
-             aIter++ )
+             ++aIter )
         {
             com::sun::star::uno::Reference<com::sun::star::container::XNamed>
                 xNamed( *aIter, com::sun::star::uno::UNO_QUERY );
@@ -78,7 +78,7 @@ protected:
     {
         for( typename std::vector<T>::const_iterator aIter = maItems.begin();
              aIter != maItems.end();
-             aIter++ )
+             ++aIter )
         {
             com::sun::star::uno::Reference<com::sun::star::container::XNamed>
                 xNamed( *aIter, com::sun::star::uno::UNO_QUERY );
diff --git a/sw/source/core/crsr/crstrvl.cxx b/sw/source/core/crsr/crstrvl.cxx
index 6509f8f..9579739 100644
--- a/sw/source/core/crsr/crstrvl.cxx
+++ b/sw/source/core/crsr/crstrvl.cxx
@@ -723,7 +723,7 @@ sal_Bool SwCrsrShell::MoveFldType( const SwFieldType* pFldType, sal_Bool bNext,
             {
                 if( it == aSrtLst.begin() )
                     return sal_False; // no more steps backward possible
-                it--;
+                --it;
             }
         }
         else // not found
@@ -737,7 +737,7 @@ sal_Bool SwCrsrShell::MoveFldType( const SwFieldType* pFldType, sal_Bool bNext,
             {
                 if( it == aSrtLst.begin() )
                     return sal_False; // no more steps backward possible
-                it--;
+                --it;
             }
         }
     }
diff --git a/sw/source/core/fields/docufld.cxx b/sw/source/core/fields/docufld.cxx
index 75e824c..b634a72 100644
--- a/sw/source/core/fields/docufld.cxx
+++ b/sw/source/core/fields/docufld.cxx
@@ -2263,7 +2263,7 @@ void SwRefPageGetFieldType::UpdateField( SwTxtFld* pTxtFld,
 
         if( itLast != rSetList.begin() )
         {
-            itLast--;
+            --itLast;
             const SwTxtFld* pRefTxtFld = (*itLast)->GetFld();
             const SwRefPageSetField* pSetFld =
                         (SwRefPageSetField*)pRefTxtFld->GetFld().GetFld();
@@ -2353,7 +2353,7 @@ void SwRefPageGetField::ChangeExpansion( const SwFrm* pFrm,
 
     if( itLast == aTmpLst.begin() )
         return;        // es gibt kein entsprechendes Set - Feld vor mir
-    itLast--;
+    --itLast;
 
     const SwTxtFld* pRefTxtFld = (*itLast)->GetFld();
     const SwRefPageSetField* pSetFld =
diff --git a/tools/source/memtools/unqidx.cxx b/tools/source/memtools/unqidx.cxx
index 63539d0..59a212a 100644
--- a/tools/source/memtools/unqidx.cxx
+++ b/tools/source/memtools/unqidx.cxx
@@ -161,7 +161,7 @@ sal_uIntPtr UniqueIndexImpl::NextIndex(sal_uIntPtr aIndex) const
     const_iterator it = find( aIndex );
     if ( it == end() )
         return UNIQUEINDEX_ENTRY_NOTFOUND;
-    it++;
+    ++it;
     if ( it == end() )
         return UNIQUEINDEX_ENTRY_NOTFOUND;
     return it->first;
diff --git a/xmloff/source/text/XMLPropertyBackpatcher.cxx b/xmloff/source/text/XMLPropertyBackpatcher.cxx
index 9e4f47d..6f15f10 100644
--- a/xmloff/source/text/XMLPropertyBackpatcher.cxx
+++ b/xmloff/source/text/XMLPropertyBackpatcher.cxx
@@ -88,7 +88,7 @@ void XMLPropertyBackpatcher<A>::ResolveId(
             // preserve version
             for(BackpatchListType::iterator aIter = pList->begin();
                 aIter != pList->end();
-                aIter++)
+                ++aIter)
             {
                 Reference<XPropertySet> xProp = (*aIter);
                 Any aPres = xProp->getPropertyValue(sPreservePropertyName);
@@ -101,7 +101,7 @@ void XMLPropertyBackpatcher<A>::ResolveId(
             // without preserve
             for(BackpatchListType::iterator aIter = pList->begin();
                 aIter != pList->end();
-                aIter++)
+                ++aIter)
             {
                 (*aIter)->setPropertyValue(sPropertyName, aAny);
             }


More information about the Libreoffice-commits mailing list