[Libreoffice-commits] .: 2 commits - extensions/source xmlsecurity/source

Caolán McNamara caolan at kemper.freedesktop.org
Fri Dec 24 06:27:34 PST 2010


 extensions/source/ole/unoobjw.cxx                     |    2 +-
 xmlsecurity/source/helper/documentsignaturehelper.cxx |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

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

    cppcheck: prefer prefix variant

diff --git a/xmlsecurity/source/helper/documentsignaturehelper.cxx b/xmlsecurity/source/helper/documentsignaturehelper.cxx
index 6313c54..ac4bff7 100644
--- a/xmlsecurity/source/helper/documentsignaturehelper.cxx
+++ b/xmlsecurity/source/helper/documentsignaturehelper.cxx
@@ -430,7 +430,7 @@ bool DocumentSignatureHelper::equalsReferenceUriManifestPath(
         retVal = true;
         typedef std::vector<OUString>::const_iterator CIT;
         for (CIT i = vUriSegments.begin(), j = vPathSegments.begin(); 
-            i != vUriSegments.end(); i++, j++)
+            i != vUriSegments.end(); ++i, ++j)
         {
             //Decode the uri segment, so that %20 becomes ' ', etc.
             OUString sDecUri = ::rtl::Uri::decode(
commit 71097b8c2964bcbe380eaa05d5a0dcf6372b75a7
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Dec 24 13:29:17 2010 +0000

    cppcheck: prefer prefix variant

diff --git a/extensions/source/ole/unoobjw.cxx b/extensions/source/ole/unoobjw.cxx
index b7e98f7..f7f77ac 100644
--- a/extensions/source/ole/unoobjw.cxx
+++ b/extensions/source/ole/unoobjw.cxx
@@ -456,7 +456,7 @@ sal_Bool  InterfaceOleWrapper_Impl::getInvocationInfoForCall( DISPID id, Invocat
         typedef NameToIdMap::const_iterator cit;
         OUString sMemberName;
 
-        for(cit ci1= m_nameToDispIdMap.begin(); ci1 != m_nameToDispIdMap.end(); ci1++)
+        for(cit ci1= m_nameToDispIdMap.begin(); ci1 != m_nameToDispIdMap.end(); ++ci1)
         {
             if( (*ci1).second == id) // iterator is a pair< OUString, DISPID>
             {


More information about the Libreoffice-commits mailing list