summaryrefslogtreecommitdiff
path: root/connectivity/source/commontools/paramwrapper.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/commontools/paramwrapper.cxx')
-rw-r--r--connectivity/source/commontools/paramwrapper.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/connectivity/source/commontools/paramwrapper.cxx b/connectivity/source/commontools/paramwrapper.cxx
index 25e45cd94946..b204e8d4727e 100644
--- a/connectivity/source/commontools/paramwrapper.cxx
+++ b/connectivity/source/commontools/paramwrapper.cxx
@@ -131,12 +131,10 @@ namespace param
OUString ParameterWrapper::impl_getPseudoAggregatePropertyName( sal_Int32 _nHandle ) const
{
Reference< XPropertySetInfo > xInfo = const_cast<ParameterWrapper*>( this )->getPropertySetInfo();
- Sequence< Property > aProperties = xInfo->getProperties();
- const Property* pProperties = aProperties.getConstArray();
- for ( sal_Int32 i = 0; i < aProperties.getLength(); ++i, ++pProperties )
+ for ( const Property& rProperty : xInfo->getProperties() )
{
- if ( pProperties->Handle == _nHandle )
- return pProperties->Name;
+ if ( rProperty.Handle == _nHandle )
+ return rProperty.Name;
}
OSL_FAIL( "ParameterWrapper::impl_getPseudoAggregatePropertyName: invalid argument!" );