sw/source/uibase/sidebar/SwPanelFactory.cxx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-)
New commits: commit e0770936a792be422aeebbece1004018e51d1eaf Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sun Dec 26 09:52:57 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon Dec 27 08:00:54 2021 +0100 use comphelper::WeakComponentImplHelper in SwPanelFactory Change-Id: Ia9bbd593b73c1071520f2a9cb599a7544faed1f9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127532 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/sw/source/uibase/sidebar/SwPanelFactory.cxx b/sw/source/uibase/sidebar/SwPanelFactory.cxx index ff5c0e58d93e..9dd70c0f3227 100644 --- a/sw/source/uibase/sidebar/SwPanelFactory.cxx +++ b/sw/source/uibase/sidebar/SwPanelFactory.cxx @@ -36,8 +36,7 @@ #include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/uno/XComponentContext.hpp> #include <comphelper/namedvaluecollection.hxx> -#include <cppuhelper/compbase.hxx> -#include <cppuhelper/basemutex.hxx> +#include <comphelper/compbase.hxx> #include <cppuhelper/supportsservice.hxx> @@ -46,13 +45,11 @@ using namespace css::uno; namespace { -typedef ::cppu::WeakComponentImplHelper < +typedef comphelper::WeakComponentImplHelper < css::ui::XUIElementFactory, css::lang::XServiceInfo > PanelFactoryInterfaceBase; -class SwPanelFactory - : private ::cppu::BaseMutex - , public PanelFactoryInterfaceBase +class SwPanelFactory final : public PanelFactoryInterfaceBase { private: SwPanelFactory(SwPanelFactory const&) = delete; @@ -77,7 +74,6 @@ public: }; SwPanelFactory::SwPanelFactory() - : PanelFactoryInterfaceBase(m_aMutex) { }