[Libreoffice-commits] .: xmloff/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sun Mar 18 09:56:30 PDT 2012


 xmloff/source/chart/MultiPropertySetHandler.hxx |    8 ++++----
 xmloff/source/core/RDFaImportHelper.cxx         |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

New commits:
commit 9032c7f63e28e5a9de00b3b868452581f6f5f145
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Mar 18 17:55:24 2012 +0100

    Some cppcheck cleaning

diff --git a/xmloff/source/chart/MultiPropertySetHandler.hxx b/xmloff/source/chart/MultiPropertySetHandler.hxx
index ab0ce3a..953e943 100644
--- a/xmloff/source/chart/MultiPropertySetHandler.hxx
+++ b/xmloff/source/chart/MultiPropertySetHandler.hxx
@@ -209,7 +209,7 @@ MultiPropertySetHandler::MultiPropertySetHandler (::com::sun::star::uno::Referen
 MultiPropertySetHandler::~MultiPropertySetHandler (void)
 {
     ::std::map< ::rtl::OUString, PropertyWrapperBase*, OUStringComparison>::iterator I;
-    for (I=aPropertyList.begin(); I!=aPropertyList.end(); I++)
+    for (I=aPropertyList.begin(); I!=aPropertyList.end(); ++I)
         delete I->second;
 }
 
@@ -220,7 +220,7 @@ sal_Bool    MultiPropertySetHandler::GetProperties  (void)
     ::std::map< ::rtl::OUString, PropertyWrapperBase*, OUStringComparison>::iterator I;
     ::com::sun::star::uno::Sequence< ::rtl::OUString> aNameList (aPropertyList.size());
     int i;
-    for (I=aPropertyList.begin(),i=0; I!=aPropertyList.end(); I++)
+    for (I=aPropertyList.begin(),i=0; I!=aPropertyList.end(); ++I)
         aNameList[i++] = I->second->msName;
     if ( ! MultiGet(aNameList))
         if ( ! SingleGet(aNameList))
@@ -243,7 +243,7 @@ sal_Bool    MultiPropertySetHandler::MultiGet   (const ::com::sun::star::uno::Se
             int i;
             ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any> aValueList =
                 xMultiSet->getPropertyValues (rNameList);
-            for (I=aPropertyList.begin(),i=0; I!=aPropertyList.end(); I++)
+            for (I=aPropertyList.begin(),i=0; I!=aPropertyList.end(); ++I)
                 I->second->SetValue (aValueList[i++]);
         }
         catch (const ::com::sun::star::beans::UnknownPropertyException&)
@@ -269,7 +269,7 @@ sal_Bool    MultiPropertySetHandler::SingleGet  (const ::com::sun::star::uno::Se
         {
             ::std::map< ::rtl::OUString, PropertyWrapperBase*, OUStringComparison>::iterator I;
             int i;
-            for (I=aPropertyList.begin(),i=0; I!=aPropertyList.end(); I++)
+            for (I=aPropertyList.begin(),i=0; I!=aPropertyList.end(); ++I)
                 I->second->SetValue (xSingleSet->getPropertyValue (rNameList[i++]));
         }
         catch (const ::com::sun::star::beans::UnknownPropertyException&)
diff --git a/xmloff/source/core/RDFaImportHelper.cxx b/xmloff/source/core/RDFaImportHelper.cxx
index 6b980d4..be466c8 100644
--- a/xmloff/source/core/RDFaImportHelper.cxx
+++ b/xmloff/source/core/RDFaImportHelper.cxx
@@ -236,7 +236,7 @@ RDFaReader::ReadCURIEs(::rtl::OUString const & i_rCURIEs) const
       }
     }
     while (!CURIEs.isEmpty());
-    if (!vec.size())
+    if (vec.empty())
     {
         OSL_TRACE( "ReadCURIEs: invalid CURIEs" );
     }


More information about the Libreoffice-commits mailing list