sw/source/core/fields/fldbas.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
New commits: commit 036da95dc5d00040f079f0d884fd773c17a453db Author: Bjoern Michaelsen <bjoern.michael...@libreoffice.org> AuthorDate: Tue Mar 10 23:22:13 2020 +0100 Commit: Björn Michaelsen <bjoern.michael...@libreoffice.org> CommitDate: Wed Mar 11 00:00:12 2020 +0100 fldbas.cxx: SwIterator no more ... Change-Id: I83a8ab6d8d9f6b0143a51176fed4fa8f2f682cfb Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90312 Tested-by: Jenkins Reviewed-by: Björn Michaelsen <bjoern.michael...@libreoffice.org> diff --git a/sw/source/core/fields/fldbas.cxx b/sw/source/core/fields/fldbas.cxx index 5a96dfe29663..cabb78ec6c89 100644 --- a/sw/source/core/fields/fldbas.cxx +++ b/sw/source/core/fields/fldbas.cxx @@ -146,12 +146,12 @@ void SwFieldType::PutValue( const uno::Any& , sal_uInt16 ) void SwFieldType::dumpAsXml(xmlTextWriterPtr pWriter) const { - SwIterator<SwFormatField, SwFieldType> aIter(*this); - if (!aIter.First()) + std::vector<SwFormatField*> vFields; + GatherFields(vFields); + if(!vFields.size()) return; xmlTextWriterStartElement(pWriter, BAD_CAST("SwFieldType")); - for (const SwFormatField* pFormatField = aIter.First(); pFormatField; - pFormatField = aIter.Next()) + for(const auto pFormatField: vFields) pFormatField->dumpAsXml(pWriter); xmlTextWriterEndElement(pWriter); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits