summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@libreoffice.org>2020-03-10 23:22:13 +0100
committerBjörn Michaelsen <bjoern.michaelsen@libreoffice.org>2020-03-11 00:00:12 +0100
commit036da95dc5d00040f079f0d884fd773c17a453db (patch)
tree4de341446d03ae1e94053ddb68b0d9dfe598ef23 /sw
parentab9f13a659e73e3bb15f995f8d78fb439b73ae59 (diff)
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@libreoffice.org>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/fields/fldbas.cxx8
1 files changed, 4 insertions, 4 deletions
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);
}