[Libreoffice-commits] core.git: sw/source
Bjoern Michaelsen (via logerrit)
logerrit at kemper.freedesktop.org
Tue Mar 10 23:00:44 UTC 2020
sw/source/core/fields/fldbas.cxx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
New commits:
commit 036da95dc5d00040f079f0d884fd773c17a453db
Author: Bjoern Michaelsen <bjoern.michaelsen at libreoffice.org>
AuthorDate: Tue Mar 10 23:22:13 2020 +0100
Commit: Björn Michaelsen <bjoern.michaelsen at 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.michaelsen at 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);
}
More information about the Libreoffice-commits
mailing list