summaryrefslogtreecommitdiff
path: root/dbaccess
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-03-04 10:09:41 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-03-04 12:25:18 +0100
commitb47bca7fd71abb7fb65269f377446a26cd41cb91 (patch)
tree66221856f9bdf8ae35cf84b0b18af68ef18663e0 /dbaccess
parent96af93e5df3ea2e775cdfebf31447abaeec6dcfa (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 'dbaccess')
-rw-r--r--dbaccess/source/filter/xml/xmlExport.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/dbaccess/source/filter/xml/xmlExport.cxx b/dbaccess/source/filter/xml/xmlExport.cxx
index 53363f09d6fd..e0cd1a11f5e7 100644
--- a/dbaccess/source/filter/xml/xmlExport.cxx
+++ b/dbaccess/source/filter/xml/xmlExport.cxx
@@ -644,12 +644,14 @@ void ODBExport::exportConnectionData()
template< typename T > void ODBExport::exportDataSourceSettingsSequence(
std::vector< TypedPropertyValue >::iterator const & in)
{
- OSequenceIterator< T > i( in->Value );
- while (i.hasMoreElements())
+ css::uno::Sequence<T> anySeq;
+ bool bSuccess = in->Value >>= anySeq;
+ assert(bSuccess); (void)bSuccess;
+ for (T const & i : anySeq )
{
SvXMLElementExport aDataValue(*this,XML_NAMESPACE_DB, XML_DATA_SOURCE_SETTING_VALUE, true, false);
// (no whitespace inside the tag)
- Characters(implConvertAny(i.nextElement()));
+ Characters(implConvertAny(css::uno::Any(i)));
}
}