Kaydet (Commit) 9032c7f6 authored tarafından Julien Nabet's avatar Julien Nabet

Some cppcheck cleaning

üst 0fa12e0b
...@@ -209,7 +209,7 @@ MultiPropertySetHandler::MultiPropertySetHandler (::com::sun::star::uno::Referen ...@@ -209,7 +209,7 @@ MultiPropertySetHandler::MultiPropertySetHandler (::com::sun::star::uno::Referen
MultiPropertySetHandler::~MultiPropertySetHandler (void) MultiPropertySetHandler::~MultiPropertySetHandler (void)
{ {
::std::map< ::rtl::OUString, PropertyWrapperBase*, OUStringComparison>::iterator I; ::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; delete I->second;
} }
...@@ -220,7 +220,7 @@ sal_Bool MultiPropertySetHandler::GetProperties (void) ...@@ -220,7 +220,7 @@ sal_Bool MultiPropertySetHandler::GetProperties (void)
::std::map< ::rtl::OUString, PropertyWrapperBase*, OUStringComparison>::iterator I; ::std::map< ::rtl::OUString, PropertyWrapperBase*, OUStringComparison>::iterator I;
::com::sun::star::uno::Sequence< ::rtl::OUString> aNameList (aPropertyList.size()); ::com::sun::star::uno::Sequence< ::rtl::OUString> aNameList (aPropertyList.size());
int i; 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; aNameList[i++] = I->second->msName;
if ( ! MultiGet(aNameList)) if ( ! MultiGet(aNameList))
if ( ! SingleGet(aNameList)) if ( ! SingleGet(aNameList))
...@@ -243,7 +243,7 @@ sal_Bool MultiPropertySetHandler::MultiGet (const ::com::sun::star::uno::Se ...@@ -243,7 +243,7 @@ sal_Bool MultiPropertySetHandler::MultiGet (const ::com::sun::star::uno::Se
int i; int i;
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any> aValueList = ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any> aValueList =
xMultiSet->getPropertyValues (rNameList); 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++]); I->second->SetValue (aValueList[i++]);
} }
catch (const ::com::sun::star::beans::UnknownPropertyException&) catch (const ::com::sun::star::beans::UnknownPropertyException&)
...@@ -269,7 +269,7 @@ sal_Bool MultiPropertySetHandler::SingleGet (const ::com::sun::star::uno::Se ...@@ -269,7 +269,7 @@ sal_Bool MultiPropertySetHandler::SingleGet (const ::com::sun::star::uno::Se
{ {
::std::map< ::rtl::OUString, PropertyWrapperBase*, OUStringComparison>::iterator I; ::std::map< ::rtl::OUString, PropertyWrapperBase*, OUStringComparison>::iterator I;
int 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++])); I->second->SetValue (xSingleSet->getPropertyValue (rNameList[i++]));
} }
catch (const ::com::sun::star::beans::UnknownPropertyException&) catch (const ::com::sun::star::beans::UnknownPropertyException&)
......
...@@ -236,7 +236,7 @@ RDFaReader::ReadCURIEs(::rtl::OUString const & i_rCURIEs) const ...@@ -236,7 +236,7 @@ RDFaReader::ReadCURIEs(::rtl::OUString const & i_rCURIEs) const
} }
} }
while (!CURIEs.isEmpty()); while (!CURIEs.isEmpty());
if (!vec.size()) if (vec.empty())
{ {
OSL_TRACE( "ReadCURIEs: invalid CURIEs" ); OSL_TRACE( "ReadCURIEs: invalid CURIEs" );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment