summaryrefslogtreecommitdiff
path: root/filter/source/graphic
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-05-20 13:45:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-05-21 08:48:26 +0200
commit89340fcb6509afd1bffea7b6060d5ff5a444b3f1 (patch)
treed5ae1feaeed8b67afb89b71e642b6306dd4ebc37 /filter/source/graphic
parentf94aae5cbab5b826ea8821e9ed3b456d65c03c70 (diff)
use for-range on Sequence in f*
Change-Id: I820255001c1b96d1f4b76a203f3c0f76fa09fe66 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94567 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'filter/source/graphic')
-rw-r--r--filter/source/graphic/GraphicExportFilter.cxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/filter/source/graphic/GraphicExportFilter.cxx b/filter/source/graphic/GraphicExportFilter.cxx
index 457949ab770d..548a2c4e1407 100644
--- a/filter/source/graphic/GraphicExportFilter.cxx
+++ b/filter/source/graphic/GraphicExportFilter.cxx
@@ -44,10 +44,8 @@ void GraphicExportFilter::gatherProperties( const uno::Sequence< beans::Property
{
OUString aInternalFilterName;
- for ( sal_Int32 i = 0; i < rProperties.getLength(); i++ )
+ for ( const beans::PropertyValue& rProperty : rProperties )
{
- const beans::PropertyValue& rProperty = rProperties[i];
-
if ( rProperty.Name == "FilterName" )
{
rProperty.Value >>= aInternalFilterName;
@@ -76,15 +74,15 @@ void GraphicExportFilter::gatherProperties( const uno::Sequence< beans::Property
}
}
- for ( sal_Int32 i = 0; i < maFilterDataSequence.getLength(); i++ )
+ for ( const beans::PropertyValue& rProp : std::as_const(maFilterDataSequence) )
{
- if ( maFilterDataSequence[i].Name == "PixelWidth" )
+ if ( rProp.Name == "PixelWidth" )
{
- maFilterDataSequence[i].Value >>= mnTargetWidth;
+ rProp.Value >>= mnTargetWidth;
}
- else if ( maFilterDataSequence[i].Name == "PixelHeight" )
+ else if ( rProp.Name == "PixelHeight" )
{
- maFilterDataSequence[i].Value >>= mnTargetHeight;
+ rProp.Value >>= mnTargetHeight;
}
}