summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/postgresql/pq_xbase.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/drivers/postgresql/pq_xbase.cxx')
-rw-r--r--connectivity/source/drivers/postgresql/pq_xbase.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/connectivity/source/drivers/postgresql/pq_xbase.cxx b/connectivity/source/drivers/postgresql/pq_xbase.cxx
index 377b3dd4b99b..1fec4130a9db 100644
--- a/connectivity/source/drivers/postgresql/pq_xbase.cxx
+++ b/connectivity/source/drivers/postgresql/pq_xbase.cxx
@@ -178,12 +178,12 @@ void ReflectionBase::copyValuesFrom( const Reference< XPropertySet > & set )
{
Reference< XPropertySetInfo > myPropInfo = getPropertySetInfo();
- Sequence< Property > props = info->getProperties();
- for( int i = 0 ; i < props.getLength() ; i ++ )
+ const Sequence< Property > props = info->getProperties();
+ for( Property const & prop : props )
{
- if( myPropInfo->hasPropertyByName( props[i].Name ) )
+ if( myPropInfo->hasPropertyByName( prop.Name ) )
setPropertyValue_NoBroadcast_public(
- props[i].Name, set->getPropertyValue( props[i].Name ) );
+ prop.Name, set->getPropertyValue( prop.Name ) );
}
}
}