use WeakComponentImplHelper2 in Bootstrap_MacroExpander

Change-Id: I49f051d9c9da46ec877e4f611836c7a3548f9f10
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151581
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
Noel Grandin
2023-05-10 08:01:47 +02:00
parent 8809b57da9
commit 89e0a3e05d
+3 -15
View File
@@ -24,7 +24,7 @@
#include <uno/mapping.hxx>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/compbase.hxx>
#include <compbase2.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
@@ -83,22 +83,13 @@ Sequence< OUString > const & s_get_service_names()
return IMPL_NAMES;
}
typedef cppu::WeakComponentImplHelper<
typedef cppuhelper::WeakComponentImplHelper2<
util::XMacroExpander, lang::XServiceInfo > t_uno_impl;
struct mutex_holder
class Bootstrap_MacroExpander : public t_uno_impl
{
Mutex m_mutex;
};
class Bootstrap_MacroExpander : public mutex_holder, public t_uno_impl
{
protected:
virtual void SAL_CALL disposing() override;
public:
Bootstrap_MacroExpander()
: t_uno_impl( m_mutex )
{}
// XMacroExpander impl
@@ -110,9 +101,6 @@ public:
};
void Bootstrap_MacroExpander::disposing()
{}
// XServiceInfo impl
OUString Bootstrap_MacroExpander::getImplementationName()