[Libreoffice-commits] core.git: sw/source

Bjoern Michaelsen (via logerrit) logerrit at kemper.freedesktop.org
Sun Mar 15 01:24:07 UTC 2020


 sw/source/core/doc/DocumentFieldsManager.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 6e205c4695e5df9f7b0032ba15247de27415d0d6
Author:     Bjoern Michaelsen <bjoern.michaelsen at libreoffice.org>
AuthorDate: Sun Mar 15 00:48:57 2020 +0100
Commit:     Björn Michaelsen <bjoern.michaelsen at 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.michaelsen at 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())
             {


More information about the Libreoffice-commits mailing list