[Libreoffice-commits] .: 2 commits - comphelper/source toolkit/source

Caolán McNamara caolan at kemper.freedesktop.org
Thu Dec 23 06:09:42 PST 2010


 comphelper/source/property/MasterPropertySetInfo.cxx |    2 +-
 toolkit/source/layout/core/box-base.cxx              |    6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 93da4be8827d42184f5994285fc6db027d25905f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Dec 23 14:01:55 2010 +0000

    cppcheck: prefer prefix variant

diff --git a/comphelper/source/property/MasterPropertySetInfo.cxx b/comphelper/source/property/MasterPropertySetInfo.cxx
index 644c6b2..4fe6ae9 100644
--- a/comphelper/source/property/MasterPropertySetInfo.cxx
+++ b/comphelper/source/property/MasterPropertySetInfo.cxx
@@ -104,7 +104,7 @@ void MasterPropertySetInfo::add( PropertyInfoHash &rHash, sal_uInt8 nMapId )
             OSL_ENSURE( sal_False, "Warning: PropertyInfo added twice, possible error!");
 #endif
         maMap[(*aIter).first] = new PropertyData ( nMapId, (*aIter).second );
-        aIter++;
+        ++aIter;
     }
 }
 
commit f490930e5f7d7cda2977f6aff3156dd25a6ffdc0
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Dec 23 14:01:44 2010 +0000

    cppcheck: prefer prefix variant

diff --git a/toolkit/source/layout/core/box-base.cxx b/toolkit/source/layout/core/box-base.cxx
index 3fd7939..015dada 100644
--- a/toolkit/source/layout/core/box-base.cxx
+++ b/toolkit/source/layout/core/box-base.cxx
@@ -108,7 +108,7 @@ Box_Base::ChildData*
 Box_Base::removeChildData( std::list< ChildData* >& lst, css::uno::Reference< css::awt::XLayoutConstrains > const& xChild )
 {
     for ( std::list< ChildData* >::iterator it = lst.begin();
-          it != lst.end(); it++ )
+          it != lst.end(); ++it )
     {
         if ( (*it)->mxChild == xChild )
         {
@@ -143,7 +143,7 @@ Box_Base::getChildren()
     uno::Sequence< uno::Reference< awt::XLayoutConstrains > > children( maChildren.size() );
     unsigned int index = 0;
     for ( std::list< ChildData* >::iterator it = maChildren.begin();
-          it != maChildren.end(); it++, index++ )
+          it != maChildren.end(); ++it, ++index )
         children[index] = ( *it )->mxChild;
 
     return children;
@@ -155,7 +155,7 @@ Box_Base::getChildProperties( const uno::Reference< awt::XLayoutConstrains >& xC
 {
     
     for ( std::list< ChildData * >::iterator it = maChildren.begin();
-          it != maChildren.end(); it++)
+          it != maChildren.end(); ++it)
     {
         if ( ( *it )->mxChild == xChild )
         {


More information about the Libreoffice-commits mailing list