diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-04 10:09:41 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-03-04 12:25:18 +0100 |
commit | b47bca7fd71abb7fb65269f377446a26cd41cb91 (patch) | |
tree | 66221856f9bdf8ae35cf84b0b18af68ef18663e0 /xmloff | |
parent | 96af93e5df3ea2e775cdfebf31447abaeec6dcfa (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/forms/propertyexport.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
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<T> 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, |