diff options
author | Bjoern Michaelsen <bjoern.michaelsen@libreoffice.org> | 2020-03-15 00:48:57 +0100 |
---|---|---|
committer | Björn Michaelsen <bjoern.michaelsen@libreoffice.org> | 2020-03-15 02:23:19 +0100 |
commit | 6e205c4695e5df9f7b0032ba15247de27415d0d6 (patch) | |
tree | 5f17f86acfdc62806f2c7f271b59cc98a0df7b33 /sw/source/core | |
parent | f1e5f9040234575a023c023b2b4654e4fbcd6389 (diff) |
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@libreoffice.org>
Diffstat (limited to 'sw/source/core')
-rw-r--r-- | sw/source/core/doc/DocumentFieldsManager.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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()) { |