diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2017-05-01 14:34:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-05-02 08:17:55 +0200 |
commit | 5eaad8eb1d46b6f85605c5ac210e8b1397b18b22 (patch) | |
tree | a4b35695a88108b89eba90d4112be0736f7c94db /sw/source/core/fields/fldbas.cxx | |
parent | d02d52887678cd3d518c19a235bc443c292b3041 (diff) |
SwFieldTypes can just be a std::vector typedef
Change-Id: I10b43a71c8cedc6efbb30056d3da7fd431f04791
Reviewed-on: https://gerrit.libreoffice.org/37121
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/fields/fldbas.cxx')
-rw-r--r-- | sw/source/core/fields/fldbas.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/fields/fldbas.cxx b/sw/source/core/fields/fldbas.cxx index 4dcb10a43843..27627dddee55 100644 --- a/sw/source/core/fields/fldbas.cxx +++ b/sw/source/core/fields/fldbas.cxx @@ -155,13 +155,11 @@ bool SwFieldType::PutValue( const uno::Any& , sal_uInt16 ) return false; } -void SwFieldTypes::dumpAsXml(xmlTextWriterPtr pWriter) const +void dumpAsXml(xmlTextWriterPtr pWriter, SwFieldTypes const & rTypes) { xmlTextWriterStartElement(pWriter, BAD_CAST("SwFieldTypes")); - sal_uInt16 nCount = size(); - for (sal_uInt16 nType = 0; nType < nCount; ++nType) + for (auto pCurType : rTypes) { - const SwFieldType *pCurType = (*this)[nType]; SwIterator<SwFormatField, SwFieldType> aIter(*pCurType); for (const SwFormatField* pFormatField = aIter.First(); pFormatField; pFormatField = aIter.Next()) pFormatField->dumpAsXml(pWriter); |