summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 09:13:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 12:52:36 +0200
commit09c757cbdd3f973c97151203d8ff522141102da7 (patch)
treed1424cd2d3698965f847dc161c282ce1d00f9a94 /ucb
parent22a4b7e621cbb6cab1d82d57c370e3cf33b4e74e (diff)
use for-range on Sequence in testtools..xmloff
Change-Id: I05b02a2f8b4b9091c7de0f7e98409d5b608ed250 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94610 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/cacher/cachedcontentresultset.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx
index 762d3f192bc1..9ebc51357fd2 100644
--- a/ucb/source/cacher/cachedcontentresultset.cxx
+++ b/ucb/source/cacher/cachedcontentresultset.cxx
@@ -558,9 +558,8 @@ sal_Int32 CCRS_PropertySetInfo
bool CCRS_PropertySetInfo
::impl_queryProperty( const OUString& rName, Property& rProp ) const
{
- for( sal_Int32 nN = m_pProperties->getLength(); nN--; )
+ for( const Property& rMyProp : std::as_const(*m_pProperties) )
{
- const Property& rMyProp = (*m_pProperties)[nN];
if( rMyProp.Name == rName )
{
rProp.Name = rMyProp.Name;
@@ -598,9 +597,9 @@ sal_Int32 CCRS_PropertySetInfo
while( bFound )
{
bFound = false;
- for( sal_Int32 nN = m_pProperties->getLength(); nN--; )
+ for( const auto & rProp : std::as_const(*m_pProperties) )
{
- if( nHandle == (*m_pProperties)[nN].Handle )
+ if( nHandle == rProp.Handle )
{
bFound = true;
nHandle++;