diff options
Diffstat (limited to 'xmloff/source/forms/propertyimport.cxx')
-rw-r--r-- | xmloff/source/forms/propertyimport.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/xmloff/source/forms/propertyimport.cxx b/xmloff/source/forms/propertyimport.cxx index cee59ee8d1d7..540d670c8a0c 100644 --- a/xmloff/source/forms/propertyimport.cxx +++ b/xmloff/source/forms/propertyimport.cxx @@ -517,12 +517,10 @@ void OListPropertyContext::EndElement() Sequence< Any > aListElements( m_aListValues.size() ); Any* pListElement = aListElements.getArray(); css::uno::Type aType = PropertyConversion::xmlTypeToUnoType( m_sPropertyType ); - for ( ::std::vector< OUString >::const_iterator values = m_aListValues.begin(); - values != m_aListValues.end(); - ++values, ++pListElement - ) + for ( const auto& rListValue : m_aListValues ) { - *pListElement = PropertyConversion::convertString( aType, *values ); + *pListElement = PropertyConversion::convertString( aType, rListValue ); + ++pListElement; } PropertyValue aSequenceValue; |