From aecdaa718612285306335e307b242d6b9166052e Mon Sep 17 00:00:00 2001 From: Takeshi Abe Date: Mon, 3 Aug 2015 17:34:19 +0900 Subject: tdf#88206 replace cppu::WeakImplHelper* etc. with the variadic variants in embedserv and eventattacher. Change-Id: I556ad208a7ffcf85c484e298cdbb1324b8a6a659 Reviewed-on: https://gerrit.libreoffice.org/17499 Tested-by: Jenkins Reviewed-by: Noel Grandin --- embedserv/source/inc/docholder.hxx | 4 ++-- embedserv/source/inc/intercept.hxx | 4 ++-- embedserv/source/inc/xwin.hxx | 4 ++-- eventattacher/source/eventattacher.cxx | 9 ++++----- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/embedserv/source/inc/docholder.hxx b/embedserv/source/inc/docholder.hxx index 4ab0468a2556..c1fdc245ce0a 100644 --- a/embedserv/source/inc/docholder.hxx +++ b/embedserv/source/inc/docholder.hxx @@ -27,7 +27,7 @@ #include #include #include -#include +#include #include @@ -43,7 +43,7 @@ namespace winwrap { class DocumentHolder : - public ::cppu::WeakImplHelper4< + public ::cppu::WeakImplHelper< ::com::sun::star::util::XCloseListener, ::com::sun::star::frame::XTerminateListener, ::com::sun::star::util::XModifyListener, diff --git a/embedserv/source/inc/intercept.hxx b/embedserv/source/inc/intercept.hxx index 83454f002473..795b344aa8d5 100644 --- a/embedserv/source/inc/intercept.hxx +++ b/embedserv/source/inc/intercept.hxx @@ -21,7 +21,7 @@ #define INCLUDED_EMBEDSERV_SOURCE_INC_INTERCEPT_HXX #include -#include +#include #include #include #include @@ -36,7 +36,7 @@ class EmbedDocument_Impl; class DocumentHolder; class Interceptor - : public ::cppu::WeakImplHelper3< + : public ::cppu::WeakImplHelper< ::com::sun::star::frame::XDispatchProviderInterceptor, ::com::sun::star::frame::XInterceptorInfo, ::com::sun::star::frame::XDispatch> diff --git a/embedserv/source/inc/xwin.hxx b/embedserv/source/inc/xwin.hxx index aa666dff0a79..854a8327b15d 100644 --- a/embedserv/source/inc/xwin.hxx +++ b/embedserv/source/inc/xwin.hxx @@ -24,13 +24,13 @@ #include "common.h" #include #include -#include +#include #include #include class ContainerWindowWrapper: - public ::cppu::WeakImplHelper2< + public ::cppu::WeakImplHelper< ::com::sun::star::awt::XWindow, ::com::sun::star::awt::XSystemDependentWindowPeer> { diff --git a/eventattacher/source/eventattacher.cxx b/eventattacher/source/eventattacher.cxx index 6dcae48b302e..207626d0e16b 100644 --- a/eventattacher/source/eventattacher.cxx +++ b/eventattacher/source/eventattacher.cxx @@ -36,8 +36,7 @@ #include #include #include -#include -#include +#include #include using namespace com::sun::star::uno; @@ -60,7 +59,7 @@ namespace comp_EventAttacher { // class InvocationToAllListenerMapper // helper class to map XInvocation to XAllListener -class InvocationToAllListenerMapper : public WeakImplHelper1< XInvocation > +class InvocationToAllListenerMapper : public WeakImplHelper< XInvocation > { public: InvocationToAllListenerMapper( const Reference< XIdlClass >& ListenerType, @@ -209,7 +208,7 @@ sal_Bool SAL_CALL InvocationToAllListenerMapper::hasProperty(const OUString& Nam // class EventAttacherImpl // represents an implementation of the EventAttacher service -class EventAttacherImpl : public WeakImplHelper3 < XEventAttacher2, XInitialization, XServiceInfo > +class EventAttacherImpl : public WeakImplHelper < XEventAttacher2, XInitialization, XServiceInfo > { public: EventAttacherImpl( const Reference< XComponentContext >& ); @@ -431,7 +430,7 @@ Reference< XTypeConverter > EventAttacherImpl::getConverter() throw( Exception ) // Implementation of an EventAttacher-related AllListeners, which brings // a few Events to a general AllListener -class FilterAllListenerImpl : public WeakImplHelper1< XAllListener > +class FilterAllListenerImpl : public WeakImplHelper< XAllListener > { public: FilterAllListenerImpl( EventAttacherImpl * pEA_, const OUString& EventMethod_, -- cgit v1.2.3