summaryrefslogtreecommitdiff
path: root/sw/source/uibase/uno
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-05-08 13:46:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-05-09 10:44:03 +0200
commitb35a4cf023844dbbb3666c730213e9bc679d4a4f (patch)
tree6788333e22b2a73e5116d3b67bea0df3c7093707 /sw/source/uibase/uno
parentea8c12b8cc03ed259389ac267edd459844634767 (diff)
loplugin:checkunusedparams in sw(part5)
Change-Id: Iee48e6c77f1eb57cd8a3a245e5415051b85f4cc1 Reviewed-on: https://gerrit.libreoffice.org/37387 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/uibase/uno')
-rw-r--r--sw/source/uibase/uno/unodispatch.cxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/sw/source/uibase/uno/unodispatch.cxx b/sw/source/uibase/uno/unodispatch.cxx
index dd799932eed6..fd20b70d4961 100644
--- a/sw/source/uibase/uno/unodispatch.cxx
+++ b/sw/source/uibase/uno/unodispatch.cxx
@@ -64,7 +64,7 @@ SwXDispatchProviderInterceptor::~SwXDispatchProviderInterceptor()
uno::Reference< frame::XDispatch > SwXDispatchProviderInterceptor::queryDispatch(
const util::URL& aURL, const OUString& aTargetFrameName, sal_Int32 nSearchFlags )
{
- DispatchMutexLock_Impl aLock(*this);
+ DispatchMutexLock_Impl aLock;
uno::Reference< frame::XDispatch> xResult;
// create some dispatch ...
if(m_pView && aURL.Complete.startsWith(".uno:DataSourceBrowser/"))
@@ -100,7 +100,7 @@ uno::Sequence<OUString> SAL_CALL SwXDispatchProviderInterceptor::getInterceptedU
uno::Sequence< uno::Reference< frame::XDispatch > > SwXDispatchProviderInterceptor::queryDispatches(
const uno::Sequence< frame::DispatchDescriptor >& aDescripts )
{
- DispatchMutexLock_Impl aLock(*this);
+ DispatchMutexLock_Impl aLock;
uno::Sequence< uno::Reference< frame::XDispatch> > aReturn(aDescripts.getLength());
uno::Reference< frame::XDispatch>* pReturn = aReturn.getArray();
const frame::DispatchDescriptor* pDescripts = aDescripts.getConstArray();
@@ -114,33 +114,33 @@ uno::Sequence< uno::Reference< frame::XDispatch > > SwXDispatchProviderIntercept
uno::Reference< frame::XDispatchProvider > SwXDispatchProviderInterceptor::getSlaveDispatchProvider( )
{
- DispatchMutexLock_Impl aLock(*this);
+ DispatchMutexLock_Impl aLock;
return m_xSlaveDispatcher;
}
void SwXDispatchProviderInterceptor::setSlaveDispatchProvider(
const uno::Reference< frame::XDispatchProvider >& xNewDispatchProvider )
{
- DispatchMutexLock_Impl aLock(*this);
+ DispatchMutexLock_Impl aLock;
m_xSlaveDispatcher = xNewDispatchProvider;
}
uno::Reference< frame::XDispatchProvider > SwXDispatchProviderInterceptor::getMasterDispatchProvider( )
{
- DispatchMutexLock_Impl aLock(*this);
+ DispatchMutexLock_Impl aLock;
return m_xMasterDispatcher;
}
void SwXDispatchProviderInterceptor::setMasterDispatchProvider(
const uno::Reference< frame::XDispatchProvider >& xNewSupplier )
{
- DispatchMutexLock_Impl aLock(*this);
+ DispatchMutexLock_Impl aLock;
m_xMasterDispatcher = xNewSupplier;
}
void SwXDispatchProviderInterceptor::disposing( const lang::EventObject& )
{
- DispatchMutexLock_Impl aLock(*this);
+ DispatchMutexLock_Impl aLock;
if (m_xIntercepted.is())
{
m_xIntercepted->releaseDispatchProviderInterceptor(static_cast<frame::XDispatchProviderInterceptor*>(this));
@@ -176,7 +176,7 @@ sal_Int64 SwXDispatchProviderInterceptor::getSomething(
void SwXDispatchProviderInterceptor::Invalidate()
{
- DispatchMutexLock_Impl aLock(*this);
+ DispatchMutexLock_Impl aLock;
if (m_xIntercepted.is())
{
m_xIntercepted->releaseDispatchProviderInterceptor(static_cast<frame::XDispatchProviderInterceptor*>(this));
@@ -392,8 +392,7 @@ const sal_Char* SwXDispatch::GetDBChangeURL()
return cInternalDBChangeNotification;
}
-SwXDispatchProviderInterceptor::DispatchMutexLock_Impl::DispatchMutexLock_Impl(
- SwXDispatchProviderInterceptor& )
+SwXDispatchProviderInterceptor::DispatchMutexLock_Impl::DispatchMutexLock_Impl()
{
}