summaryrefslogtreecommitdiff
path: root/filter/source/xsltdialog/xmlfiltertestdialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'filter/source/xsltdialog/xmlfiltertestdialog.cxx')
-rw-r--r--filter/source/xsltdialog/xmlfiltertestdialog.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/filter/source/xsltdialog/xmlfiltertestdialog.cxx b/filter/source/xsltdialog/xmlfiltertestdialog.cxx
index e4a659a3653c..0499e0a5e615 100644
--- a/filter/source/xsltdialog/xmlfiltertestdialog.cxx
+++ b/filter/source/xsltdialog/xmlfiltertestdialog.cxx
@@ -345,16 +345,13 @@ void XMLFilterTestDialog::onExportBrowse()
if( aAny >>= aValues2 )
{
- PropertyValue* pValues2 = aValues2.getArray();
- sal_Int32 nValue;
-
OUString aExtension;
- for( nValue = 0; nValue < aValues2.getLength(); nValue++, pValues2++ )
+ for( const PropertyValue& rProp : std::as_const(aValues2) )
{
- if ( pValues2->Name == "Extensions" )
+ if ( rProp.Name == "Extensions" )
{
Sequence< OUString > aExtensions;
- if( pValues2->Value >>= aExtensions )
+ if( rProp.Value >>= aExtensions )
{
const sal_Int32 nCount( aExtensions.getLength() );
OUString* pExtensions = aExtensions.getArray();