From b47bca7fd71abb7fb65269f377446a26cd41cb91 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 4 Mar 2019 10:09:41 +0200 Subject: OSequenceIterator is not necessary anymore we have been able to iterate over a sequence for a long time now Change-Id: Ie7ed6ec25682f631e01170029f7c9f0089448836 Reviewed-on: https://gerrit.libreoffice.org/68666 Tested-by: Jenkins Reviewed-by: Noel Grandin --- xmloff/source/forms/propertyexport.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'xmloff') diff --git a/xmloff/source/forms/propertyexport.cxx b/xmloff/source/forms/propertyexport.cxx index 61844b78e3c7..80d5a97f0752 100644 --- a/xmloff/source/forms/propertyexport.cxx +++ b/xmloff/source/forms/propertyexport.cxx @@ -93,10 +93,12 @@ namespace xmloff OPropertyExport::exportRemainingPropertiesSequence( Any const & value, token::XMLTokenEnum eValueAttName) { - OSequenceIterator< T > i(value); - while (i.hasMoreElements()) + css::uno::Sequence anySeq; + bool bSuccess = value >>= anySeq; + assert(bSuccess); (void)bSuccess; + for (T const & i : anySeq) { - OUString sValue(implConvertAny(i.nextElement())); + OUString sValue(implConvertAny(makeAny(i))); AddAttribute(XML_NAMESPACE_OFFICE, eValueAttName, sValue ); SvXMLElementExport aValueTag( m_rContext.getGlobalContext(), XML_NAMESPACE_FORM, -- cgit v1.2.3