sw/source/uibase/inc/unoatxt.hxx |    8 +++-----
 sw/source/uibase/uno/unoatxt.cxx |    3 +--
 2 files changed, 4 insertions(+), 7 deletions(-)

New commits:
commit 36df4a8929149ef106a0cd844eefa01e17497250
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sun Dec 26 09:56:19 2021 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Mon Dec 27 08:01:20 2021 +0100

    use comphelper::WeakComponentImplHelper in SwXAutoTextEntry
    
    Change-Id: Idac9fbf80c69df436b3583a2022e28eeeee1721a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127533
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/sw/source/uibase/inc/unoatxt.hxx b/sw/source/uibase/inc/unoatxt.hxx
index 633a0630a4b2..b28a986ef90a 100644
--- a/sw/source/uibase/inc/unoatxt.hxx
+++ b/sw/source/uibase/inc/unoatxt.hxx
@@ -30,8 +30,7 @@
 #include <com/sun/star/text/XText.hpp>
 #include <svl/itemprop.hxx>
 #include <svl/lstner.hxx>
-#include <cppuhelper/basemutex.hxx>
-#include <cppuhelper/compbase.hxx>
+#include <comphelper/compbase.hxx>
 #include <cppuhelper/implbase.hxx>
 #include <rtl/ref.hxx>
 #include <svtools/unoevent.hxx>
@@ -152,8 +151,7 @@ public:
 
 class SwXAutoTextEntry final
         :public SfxListener
-        ,public cppu::BaseMutex
-        ,public cppu::WeakComponentImplHelper
+        ,public comphelper::WeakComponentImplHelper
         <
             css::text::XAutoTextEntry,
             css::lang::XServiceInfo,
@@ -176,7 +174,7 @@ class SwXAutoTextEntry final
     }
     void GetBodyText ();
 
-    void SAL_CALL disposing() override;
+    void disposing(std::unique_lock<std::mutex>&) override;
 
     /** ensure that the current content (which may only be in-memory so far) 
is flushed to the auto text group file
 
diff --git a/sw/source/uibase/uno/unoatxt.cxx b/sw/source/uibase/uno/unoatxt.cxx
index e045d21d6d6a..ea8bd2d880ce 100644
--- a/sw/source/uibase/uno/unoatxt.cxx
+++ b/sw/source/uibase/uno/unoatxt.cxx
@@ -668,7 +668,6 @@ sal_Int64 SAL_CALL SwXAutoTextEntry::getSomething( const 
uno::Sequence< sal_Int8
 
 SwXAutoTextEntry::SwXAutoTextEntry(SwGlossaries* pGlss, const OUString& 
rGroupName,
                                             const OUString& rEntryName) :
-    WeakComponentImplHelper(m_aMutex),
     pGlossaries(pGlss),
     sGroupName(rGroupName),
     sEntryName(rEntryName)
@@ -744,7 +743,7 @@ void SwXAutoTextEntry::GetBodyText ()
     mxBodyText = new SwXBodyText ( xDocSh->GetDoc() );
 }
 
-void SwXAutoTextEntry::disposing()
+void SwXAutoTextEntry::disposing(std::unique_lock<std::mutex>&)
 {
     SolarMutexGuard g;
     implFlushDocument(true);

Reply via email to