framework/source/services/taskcreatorsrv.cxx | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-)
New commits: commit 2d1ed93e46e01f575b3f3755bf9f5da0d6f370ef Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Fri Dec 24 20:50:28 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Sun Dec 26 08:22:20 2021 +0100 use comphelper::WeakComponentImplHelper in TaskCreatorService Change-Id: I2414ef01bc0990c68bb6fa02a897bfa19d7982a6 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127463 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/framework/source/services/taskcreatorsrv.cxx b/framework/source/services/taskcreatorsrv.cxx index 9ce0941fb745..c484e115d7c6 100644 --- a/framework/source/services/taskcreatorsrv.cxx +++ b/framework/source/services/taskcreatorsrv.cxx @@ -35,8 +35,7 @@ #include <com/sun/star/lang/XSingleServiceFactory.hpp> #include <comphelper/sequenceashashmap.hxx> -#include <cppuhelper/basemutex.hxx> -#include <cppuhelper/compbase.hxx> +#include <comphelper/compbase.hxx> #include <cppuhelper/supportsservice.hxx> #include <svtools/colorcfg.hxx> #include <toolkit/helper/vclunohelper.hxx> @@ -47,12 +46,11 @@ using namespace framework; namespace { -typedef ::cppu::WeakComponentImplHelper< +typedef comphelper::WeakComponentImplHelper< css::lang::XServiceInfo, css::lang::XSingleServiceFactory> TaskCreatorService_BASE; -class TaskCreatorService : private cppu::BaseMutex, - public TaskCreatorService_BASE +class TaskCreatorService : public TaskCreatorService_BASE { private: @@ -106,8 +104,7 @@ private: }; TaskCreatorService::TaskCreatorService(const css::uno::Reference< css::uno::XComponentContext >& xContext) - : TaskCreatorService_BASE(m_aMutex) - , m_xContext (xContext ) + : m_xContext (xContext ) { }