diff options
Diffstat (limited to 'oox/source/mathml/importutils.cxx')
-rw-r--r-- | oox/source/mathml/importutils.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/oox/source/mathml/importutils.cxx b/oox/source/mathml/importutils.cxx index 20decf4e7d45..178a3eed6791 100644 --- a/oox/source/mathml/importutils.cxx +++ b/oox/source/mathml/importutils.cxx @@ -46,14 +46,10 @@ AttributeListBuilder::AttributeListBuilder( const uno::Reference< xml::sax::XFas { if( a.get() == nullptr ) return; - uno::Sequence< xml::FastAttribute > aFastAttrSeq = a->getFastAttributes(); - const xml::FastAttribute* pFastAttr = aFastAttrSeq.getConstArray(); - sal_Int32 nFastAttrLength = aFastAttrSeq.getLength(); - for( int i = 0; - i < nFastAttrLength; - ++i ) + const uno::Sequence< xml::FastAttribute > aFastAttrSeq = a->getFastAttributes(); + for( const xml::FastAttribute& rFastAttr : aFastAttrSeq ) { - attrs[ pFastAttr[ i ].Token ] = pFastAttr[ i ].Value; + attrs[ rFastAttr.Token ] = rFastAttr.Value; } } |