summaryrefslogtreecommitdiff
path: root/svx/source/xml/xmlxtexp.cxx
diff options
context:
space:
mode:
authorArkadiy Illarionov <qarkai@gmail.com>2019-07-07 16:20:12 +0300
committerArkadiy Illarionov <qarkai@gmail.com>2019-07-09 17:48:06 +0200
commit44a6335f49a64ac77207d3aa46c267503c65c5ff (patch)
tree8ed220967528dc6caa72fa9e753c0955f3de2433 /svx/source/xml/xmlxtexp.cxx
parent4a96a5d862ed46bbcb64d34b32720b5b1b3d7ca8 (diff)
Simplify Sequence iterations in svx
Use range-based loops, STL and comphelper functions Change-Id: If6d190cf72b8653c1c3fbe9a6a6e47f10f1a6765 Reviewed-on: https://gerrit.libreoffice.org/75255 Tested-by: Jenkins Reviewed-by: Arkadiy Illarionov <qarkai@gmail.com>
Diffstat (limited to 'svx/source/xml/xmlxtexp.cxx')
-rw-r--r--svx/source/xml/xmlxtexp.cxx9
1 files changed, 3 insertions, 6 deletions
diff --git a/svx/source/xml/xmlxtexp.cxx b/svx/source/xml/xmlxtexp.cxx
index 40dfb6cfdd9c..70c1805bd58f 100644
--- a/svx/source/xml/xmlxtexp.cxx
+++ b/svx/source/xml/xmlxtexp.cxx
@@ -378,15 +378,12 @@ bool SvxXMLXTableExportComponent::exportTable() throw()
SvXMLElementExport aElem( *this, XML_NAMESPACE_OOO, pEleName, true, true );
Sequence< OUString > aNames = mxTable->getElementNames();
- const sal_Int32 nCount = aNames.getLength();
- const OUString* pNames = aNames.getConstArray();
Any aAny;
- sal_Int32 nIndex;
- for( nIndex = 0; nIndex < nCount; nIndex++, pNames++ )
+ for( const OUString& rName : aNames )
{
- aAny = mxTable->getByName( *pNames );
- pExporter->exportEntry( *pNames, aAny );
+ aAny = mxTable->getByName( rName );
+ pExporter->exportEntry( rName, aAny );
}
bRet = true;