use comphelper::WeakComponentImplHelper in ChartPanelFactory

Change-Id: Id81031b061981771a5f5dc91de3f5a404857164e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127692
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin 2021-12-28 21:27:16 +02:00 committed by Noel Grandin
parent d26d13f49c
commit b29e3131ea
2 changed files with 4 additions and 7 deletions

View File

@ -40,7 +40,6 @@ using namespace css::uno;
namespace chart::sidebar { namespace chart::sidebar {
ChartPanelFactory::ChartPanelFactory() ChartPanelFactory::ChartPanelFactory()
: PanelFactoryInterfaceBase(m_aMutex)
{ {
} }

View File

@ -18,21 +18,19 @@
*/ */
#pragma once #pragma once
#include <cppuhelper/compbase.hxx> #include <comphelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/ui/XUIElementFactory.hpp> #include <com/sun/star/ui/XUIElementFactory.hpp>
namespace chart::sidebar { namespace chart::sidebar {
typedef ::cppu::WeakComponentImplHelper < typedef comphelper::WeakComponentImplHelper <
css::ui::XUIElementFactory, css::lang::XServiceInfo css::ui::XUIElementFactory, css::lang::XServiceInfo
> PanelFactoryInterfaceBase; > PanelFactoryInterfaceBase;
class ChartPanelFactory class ChartPanelFactory final
: private ::cppu::BaseMutex, : public PanelFactoryInterfaceBase
public PanelFactoryInterfaceBase
{ {
public: public:
ChartPanelFactory(); ChartPanelFactory();