diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 21:43:08 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2006-06-19 21:43:08 +0000 |
commit | 1deb4ccc2b2833ce576860170297ed3fcfe16746 (patch) | |
tree | 73bce70056c47a5c2185dcaa4ef00482badffb4e /comphelper/inc/comphelper/listenernotification.hxx | |
parent | 1adf9735d45b813f03dd28ef2c35c095d220533e (diff) |
INTEGRATION: CWS warnings01 (1.4.52); FILE MERGED
2006/04/20 14:26:53 sb 1.4.52.5: #i53898# Made code warning-free again after resync to SRC680m162.
2006/04/07 19:35:04 sb 1.4.52.4: RESYNC: (1.5-1.6); FILE MERGED
2005/11/16 14:43:12 fs 1.4.52.3: #i57457#
2005/09/23 03:04:25 sb 1.4.52.2: RESYNC: (1.4-1.5); FILE MERGED
2005/09/01 13:59:54 sb 1.4.52.1: #i53898# Made code warning-free.
Diffstat (limited to 'comphelper/inc/comphelper/listenernotification.hxx')
-rw-r--r-- | comphelper/inc/comphelper/listenernotification.hxx | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/comphelper/inc/comphelper/listenernotification.hxx b/comphelper/inc/comphelper/listenernotification.hxx index 5c17fab37a16..dbb788fc9add 100644 --- a/comphelper/inc/comphelper/listenernotification.hxx +++ b/comphelper/inc/comphelper/listenernotification.hxx @@ -4,9 +4,9 @@ * * $RCSfile: listenernotification.hxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: vg $ $Date: 2006-03-14 11:39:51 $ + * last change: $Author: hr $ $Date: 2006-06-19 22:43:08 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -115,6 +115,8 @@ namespace comphelper protected: OListenerContainer( ::osl::Mutex& _rMutex ); + virtual ~OListenerContainer(); + void addListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& _rxListener ); void removeListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& _rxListener ); @@ -217,11 +219,11 @@ namespace comphelper } // publish some otherwise hidden base functionality - OListenerContainer::disposing; - OListenerContainer::clear; - OListenerContainer::empty; - OListenerContainer::size; - OListenerContainer::createIterator; + using OListenerContainer::disposing; + using OListenerContainer::clear; + using OListenerContainer::empty; + using OListenerContainer::size; + using OListenerContainer::createIterator; /// typed notification bool notify( const EventClass& _rEvent, NotificationMethod _pNotify ) SAL_THROW(( ::com::sun::star::uno::Exception )); @@ -273,12 +275,12 @@ namespace comphelper { } - inline void addListener( const ::com::sun::star::uno::Reference< ListenerClass >& _rxListener ) + inline void addTypedListener( const ::com::sun::star::uno::Reference< ListenerClass >& _rxListener ) { OListenerContainer::addListener( _rxListener.get() ); } - inline void removeListener( const ::com::sun::star::uno::Reference< ListenerClass >& _rxListener ) + inline void removeTypedListener( const ::com::sun::star::uno::Reference< ListenerClass >& _rxListener ) { OListenerContainer::removeListener( _rxListener.get() ); } @@ -294,7 +296,7 @@ namespace comphelper const ::com::sun::star::lang::EventObject& _rEvent ) SAL_THROW( ( ::com::sun::star::uno::Exception ) ); - virtual bool implNotify( + virtual bool implTypedNotify( const ::com::sun::star::uno::Reference< ListenerClass >& _rxListener, const EventClass& _rEvent ) SAL_THROW( ( ::com::sun::star::uno::Exception ) ) = 0; @@ -305,7 +307,7 @@ namespace comphelper const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& _rxListener, const ::com::sun::star::lang::EventObject& _rEvent ) SAL_THROW( ( ::com::sun::star::uno::Exception ) ) { - return implNotify( + return implTypedNotify( ::com::sun::star::uno::Reference< ListenerClass >( static_cast< ListenerClass* >( _rxListener.get() ) ), static_cast< const EventClass& >( _rEvent ) ); |