summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-04 19:05:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-05 11:43:38 +0000
commit4ff666e2ee9bd5871693262558deb6b95c2af43a (patch)
tree65ce579a64f42cd7488d6ec13d9d09c146500c8b /sw/source/uibase
parentc010b8cc712d1336ed79fb220764f1a850dc22e5 (diff)
remove unused BaseMutex in SwMailTransferable
Change-Id: Ib079e354433905b25aa44a64779e0c54701858ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148253 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/dbui/mailmergehelper.cxx7
-rw-r--r--sw/source/uibase/inc/mailmergehelper.hxx17
2 files changed, 7 insertions, 17 deletions
diff --git a/sw/source/uibase/dbui/mailmergehelper.cxx b/sw/source/uibase/dbui/mailmergehelper.cxx
index d6efcfc675c5..4e6f7534da9a 100644
--- a/sw/source/uibase/dbui/mailmergehelper.cxx
+++ b/sw/source/uibase/dbui/mailmergehelper.cxx
@@ -102,7 +102,7 @@ uno::Reference< mail::XSmtpService > ConnectToSmtpServer(
mail::MailServiceProvider::create( xContext ) );
xSmtpServer.set(xMailServiceProvider->create(mail::MailServiceType_SMTP), uno::UNO_QUERY);
- uno::Reference< mail::XConnectionListener> xConnectionListener(new SwConnectionListener());
+ uno::Reference< mail::XConnectionListener> xConnectionListener(new SwConnectionListener);
if(rConfigItem.IsAuthentication() && rConfigItem.IsSMTPAfterPOP())
{
@@ -632,7 +632,6 @@ void SwConnectionListener::disposing(const lang::EventObject& /*aEvent*/)
}
SwMailTransferable::SwMailTransferable(OUString aBody, OUString aMimeType) :
- cppu::WeakComponentImplHelper< datatransfer::XTransferable, beans::XPropertySet >(m_aMutex),
m_aMimeType(std::move( aMimeType )),
m_sBody(std::move( aBody )),
m_bIsBody( true )
@@ -641,7 +640,6 @@ SwMailTransferable::SwMailTransferable(OUString aBody, OUString aMimeType) :
SwMailTransferable::SwMailTransferable(OUString aURL,
OUString aName, OUString aMimeType) :
- cppu::WeakComponentImplHelper< datatransfer::XTransferable, beans::XPropertySet >(m_aMutex),
m_aMimeType(std::move( aMimeType )),
m_aURL(std::move(aURL)),
m_aName(std::move( aName )),
@@ -737,8 +735,7 @@ void SwMailTransferable::removeVetoableChangeListener(
{
}
-SwMailMessage::SwMailMessage() :
- cppu::WeakComponentImplHelper< mail::XMailMessage>(m_aMutex)
+SwMailMessage::SwMailMessage()
{
}
diff --git a/sw/source/uibase/inc/mailmergehelper.hxx b/sw/source/uibase/inc/mailmergehelper.hxx
index ab6ff56e0e32..2497c8833ef8 100644
--- a/sw/source/uibase/inc/mailmergehelper.hxx
+++ b/sw/source/uibase/inc/mailmergehelper.hxx
@@ -26,9 +26,8 @@
#include <com/sun/star/mail/XMailMessage.hpp>
#include <com/sun/star/datatransfer/XTransferable.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
-#include <cppuhelper/basemutex.hxx>
#include <cppuhelper/implbase.hxx>
-#include <cppuhelper/compbase.hxx>
+#include <comphelper/compbase.hxx>
#include <utility>
#include <vcl/customweld.hxx>
#include <vcl/weld.hxx>
@@ -171,15 +170,11 @@ public:
};
class SW_DLLPUBLIC SwConnectionListener final :
- public cppu::BaseMutex,
- public cppu::WeakComponentImplHelper<css::mail::XConnectionListener>
+ public comphelper::WeakComponentImplHelper<css::mail::XConnectionListener>
{
- using cppu::WeakComponentImplHelperBase::disposing;
+ using comphelper::WeakComponentImplHelperBase::disposing;
public:
- SwConnectionListener() :
- cppu::WeakComponentImplHelper<css::mail::XConnectionListener>(m_aMutex)
- {}
virtual ~SwConnectionListener() override;
virtual void SAL_CALL connected(const css::lang::EventObject& aEvent) override;
@@ -190,8 +185,7 @@ public:
};
class SW_DLLPUBLIC SwMailTransferable final :
- public cppu::BaseMutex,
- public cppu::WeakComponentImplHelper<css::datatransfer::XTransferable, css::beans::XPropertySet>
+ public comphelper::WeakComponentImplHelper<css::datatransfer::XTransferable, css::beans::XPropertySet>
{
OUString m_aMimeType;
OUString m_sBody;
@@ -225,8 +219,7 @@ class SW_DLLPUBLIC SwMailTransferable final :
};
class SW_DLLPUBLIC SwMailMessage final :
- public cppu::BaseMutex,
- public cppu::WeakComponentImplHelper<css::mail::XMailMessage>
+ public comphelper::WeakComponentImplHelper<css::mail::XMailMessage>
{
OUString m_sSenderName;
OUString m_sSenderAddress;