summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}