sw/source/core/doc/DocumentFieldsManager.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 6e205c4695e5df9f7b0032ba15247de27415d0d6 Author: Bjoern Michaelsen <bjoern.michael...@libreoffice.org> AuthorDate: Sun Mar 15 00:48:57 2020 +0100 Commit: Björn Michaelsen <bjoern.michael...@libreoffice.org> CommitDate: Sun Mar 15 02:23:19 2020 +0100 DocumentFieldManager::SetFixFields(): SwIterator no more ... Change-Id: I8fe9879eda45a6fe2a013fd8e0b3e2c315cb0b42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90505 Tested-by: Jenkins Reviewed-by: Björn Michaelsen <bjoern.michael...@libreoffice.org> diff --git a/sw/source/core/doc/DocumentFieldsManager.cxx b/sw/source/core/doc/DocumentFieldsManager.cxx index 9b06c4d1998c..39b0a76ff6de 100644 --- a/sw/source/core/doc/DocumentFieldsManager.cxx +++ b/sw/source/core/doc/DocumentFieldsManager.cxx @@ -1455,9 +1455,9 @@ void DocumentFieldsManager::SetFixFields( const DateTime* pNewDateTime ) for(SwFieldIds aType : aTypes) { - SwFieldType* pFieldType = GetSysFieldType( aType ); - SwIterator<SwFormatField,SwFieldType> aIter( *pFieldType ); - for( SwFormatField* pFormatField = aIter.First(); pFormatField; pFormatField = aIter.Next() ) + std::vector<SwFormatField*> vFields; + GetSysFieldType(aType)->GatherFields(vFields); + for(auto pFormatField: vFields) { if (pFormatField->GetTextField()) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits