summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-12-26 09:56:19 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-12-27 08:01:20 +0100
commit36df4a8929149ef106a0cd844eefa01e17497250 (patch)
tree4c95054580339b464260f8f8263ec690849b5949 /sw
parente0770936a792be422aeebbece1004018e51d1eaf (diff)
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.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/inc/unoatxt.hxx8
-rw-r--r--sw/source/uibase/uno/unoatxt.cxx3
2 files changed, 4 insertions, 7 deletions
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);