From 03fdec57762b287cb8e0b6b446f5e7ba1b187f88 Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Tue, 19 Nov 2013 17:24:36 +0100 Subject: winaccessibility: use WeakImplHelper Change-Id: I5872e520ca009a0f9277827d72e72befe3323a06 --- winaccessibility/inc/AccEventListener.hxx | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'winaccessibility/inc/AccEventListener.hxx') diff --git a/winaccessibility/inc/AccEventListener.hxx b/winaccessibility/inc/AccEventListener.hxx index 5978dddddd43..263e525b9137 100644 --- a/winaccessibility/inc/AccEventListener.hxx +++ b/winaccessibility/inc/AccEventListener.hxx @@ -22,7 +22,9 @@ #include #include -#include + +#include + #include class AccObjectManagerAgent; @@ -32,12 +34,10 @@ using namespace ::com::sun::star::uno; * procedure of all the event handling and provides the basic support for some simple * methods. */ -class AccEventListener: - public com::sun::star::accessibility::XAccessibleEventListener, - public ::cppu::OWeakObject +class AccEventListener + : public ::cppu::WeakImplHelper1< + com::sun::star::accessibility::XAccessibleEventListener> { -private: - oslInterlockedCount m_refcount; protected: //accessible owner's pointer com::sun::star::accessibility::XAccessible* pAccessible; @@ -74,9 +74,6 @@ public: //for interface virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException); - virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException); - virtual void SAL_CALL acquire() throw (); - virtual void SAL_CALL release() throw (); //get the accessible role of pAccessible virtual short SAL_CALL getRole(); //get the accessible parent's role -- cgit