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

Bjoern Michaelsen (via logerrit) logerrit at kemper.freedesktop.org
Mon Dec 7 10:39:47 UTC 2020


 sw/inc/authfld.hxx                |    2 +-
 sw/source/core/fields/authfld.cxx |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 995b06bd0fb824c5717791c627746a5fb38cb656
Author:     Bjoern Michaelsen <bjoern.michaelsen at libreoffice.org>
AuthorDate: Sun Dec 6 22:02:58 2020 +0100
Commit:     Bjoern Michaelsen <bjoern.michaelsen at libreoffice.org>
CommitDate: Mon Dec 7 11:39:10 2020 +0100

    SwAuthorityFieldType: Modify no more
    
    Change-Id: I59f1e5d25c0defa3b551061fccfeea625d0df3aa
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107319
    Tested-by: Jenkins
    Reviewed-by: Bjoern Michaelsen <bjoern.michaelsen at libreoffice.org>

diff --git a/sw/inc/authfld.hxx b/sw/inc/authfld.hxx
index 05921ad7a454..6ea5612f3164 100644
--- a/sw/inc/authfld.hxx
+++ b/sw/inc/authfld.hxx
@@ -69,7 +69,7 @@ class SW_DLLPUBLIC SwAuthorityFieldType final : public SwFieldType
     LanguageType            m_eLanguage;
     OUString                m_sSortAlgorithm;
 
-    virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew ) override;
+    virtual void SwClientNotify(const SwModify&, const SfxHint&) override;
 
 public:
     SwAuthorityFieldType(SwDoc* pDoc);
diff --git a/sw/source/core/fields/authfld.cxx b/sw/source/core/fields/authfld.cxx
index 7efac3af55f3..e00c727962cc 100644
--- a/sw/source/core/fields/authfld.cxx
+++ b/sw/source/core/fields/authfld.cxx
@@ -411,11 +411,11 @@ void SwAuthorityFieldType::PutValue( const Any& rAny, sal_uInt16 nWhichId )
     }
 }
 
-void SwAuthorityFieldType::Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew )
+void SwAuthorityFieldType::SwClientNotify(const SwModify&, const SfxHint& rHint)
 {
     //re-generate positions of the fields
     DelSequenceArray();
-    NotifyClients( pOld, pNew );
+    CallSwClientNotify(rHint);
 }
 
 sal_uInt16 SwAuthorityFieldType::GetSortKeyCount() const


More information about the Libreoffice-commits mailing list