diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-03-18 17:55:24 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-03-18 17:55:24 +0100 |
commit | 9032c7f63e28e5a9de00b3b868452581f6f5f145 (patch) | |
tree | 4afc8aa70bedadcdb10bc0ca426b9fc54fc4fcd0 /xmloff | |
parent | 0fa12e0b119ca4240b1acffd5a7958628f373af3 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/chart/MultiPropertySetHandler.hxx | 8 | ||||
-rw-r--r-- | xmloff/source/core/RDFaImportHelper.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/xmloff/source/chart/MultiPropertySetHandler.hxx b/xmloff/source/chart/MultiPropertySetHandler.hxx index ab0ce3ae389d..953e943d9f51 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 6b980d4a36e2..be466c8c9573 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" ); } |