[Libreoffice-commits] .: sc/source

Julien Nabet serval2412 at kemper.freedesktop.org
Thu Jul 19 23:35:43 PDT 2012


 sc/source/ui/collab/contacts.cxx |    2 +-
 sc/source/ui/collab/sendfunc.cxx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit b37bcdded66ae82c5677fe60d8347b87281f3fa2
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Fri Jul 20 08:34:42 2012 +0200

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

diff --git a/sc/source/ui/collab/contacts.cxx b/sc/source/ui/collab/contacts.cxx
index 4536e2e..d81ff9a 100644
--- a/sc/source/ui/collab/contacts.cxx
+++ b/sc/source/ui/collab/contacts.cxx
@@ -227,7 +227,7 @@ public:
         {
             AccountContactPairV aPairs = pContacts->getContacts();
             AccountContactPairV::iterator it;
-            for( it = aPairs.begin(); it != aPairs.end(); it++ )
+            for( it = aPairs.begin(); it != aPairs.end(); ++it )
             {
                 Image aImage;
                 GFile *pAvatarFile = tp_contact_get_avatar_file( it->second );
diff --git a/sc/source/ui/collab/sendfunc.cxx b/sc/source/ui/collab/sendfunc.cxx
index c16364b..d22e4ba 100644
--- a/sc/source/ui/collab/sendfunc.cxx
+++ b/sc/source/ui/collab/sendfunc.cxx
@@ -198,7 +198,7 @@ class ScDocFuncDemo : public ScDocFuncRecv
         // FIXME: Lifecycle nightmare
         std::vector< boost::shared_ptr<ScDocFuncRecv> > aCopy( maClients );
         for (std::vector< boost::shared_ptr<ScDocFuncRecv> >::iterator i
-                 = aCopy.begin(); i != aCopy.end(); i++)
+                 = aCopy.begin(); i != aCopy.end(); ++i)
             (*i)->RecvMessage(rString);
     }
 
@@ -207,7 +207,7 @@ class ScDocFuncDemo : public ScDocFuncRecv
         // FIXME: Lifecycle nightmare
         std::vector< boost::shared_ptr<ScDocFuncRecv> > aCopy( maClients );
         for (std::vector< boost::shared_ptr<ScDocFuncRecv> >::iterator i
-                 = aCopy.begin(); i != aCopy.end(); i++)
+                 = aCopy.begin(); i != aCopy.end(); ++i)
             (*i)->fileReceived( rStr );
     }
 };


More information about the Libreoffice-commits mailing list