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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user