diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-10 16:12:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-07-11 12:50:55 +0200 |
commit | 20571c472528c4f98fe3f55700d134915d32a49a (patch) | |
tree | 9b350824d845b8aaeb13d087ef74febb454b821b /extensions | |
parent | b401896a56149aa2871b65a330a6f601a9830ccd (diff) |
use more range-for on uno::Sequence
Change-Id: Ifad32425d79be5a22d33d721bdc5fb993f699759
Reviewed-on: https://gerrit.libreoffice.org/39763
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/source/propctrlr/formcomponenthandler.cxx | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/extensions/source/propctrlr/formcomponenthandler.cxx b/extensions/source/propctrlr/formcomponenthandler.cxx index fefcf1173935..c88d994093ed 100644 --- a/extensions/source/propctrlr/formcomponenthandler.cxx +++ b/extensions/source/propctrlr/formcomponenthandler.cxx @@ -831,14 +831,12 @@ namespace pcr PropertyId nPropId( 0 ); OUString sDisplayName; - Property* pProperty = aAllProperties.getArray(); - Property* pPropertiesEnd = pProperty + aAllProperties.getLength(); - for ( ; pProperty != pPropertiesEnd; ++pProperty ) + for ( Property & rProperty : aAllProperties ) { - nPropId = m_pInfoService->getPropertyId( pProperty->Name ); + nPropId = m_pInfoService->getPropertyId( rProperty.Name ); if ( nPropId == -1 ) continue; - pProperty->Handle = nPropId; + rProperty.Handle = nPropId; sDisplayName = m_pInfoService->getPropertyTranslation( nPropId ); if ( sDisplayName.isEmpty() ) @@ -856,7 +854,7 @@ namespace pcr continue; // some generic sanity checks - if ( impl_shouldExcludeProperty_nothrow( *pProperty ) ) + if ( impl_shouldExcludeProperty_nothrow( rProperty ) ) continue; switch ( nPropId ) @@ -865,7 +863,7 @@ namespace pcr case PROPERTY_ID_TABSTOP: // BORDER and TABSTOP are normalized (see impl_normalizePropertyValue_nothrow) // to not allow VOID values - pProperty->Attributes &= ~PropertyAttribute::MAYBEVOID; + rProperty.Attributes &= ~PropertyAttribute::MAYBEVOID; break; case PROPERTY_ID_LISTSOURCE: @@ -881,7 +879,7 @@ namespace pcr break; } // switch ( nPropId ) - aProperties.push_back( *pProperty ); + aProperties.push_back( rProperty ); } if ( aProperties.empty() ) |