Kaydet (Commit) 0085bd28 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Model IEventProcessor acquire/release exactly after XInterface

...so classes deriving from both can easily share a single implementation for
these functions.

Change-Id: I6882dddc8b3ea3b0192d85102a0305494d964dc1
üst 61f9aa61
......@@ -74,9 +74,9 @@ namespace dbaccess
{
}
// IReference
virtual void SAL_CALL acquire();
virtual void SAL_CALL release();
// IEventProcessor
virtual void SAL_CALL acquire() throw ();
virtual void SAL_CALL release() throw ();
void addLegacyEventListener( const Reference< document::XEventListener >& _Listener )
{
......@@ -129,12 +129,12 @@ namespace dbaccess
void impl_notifyEventAsync_nothrow( const DocumentEvent& _rEvent );
};
void SAL_CALL DocumentEventNotifier_Impl::acquire()
void SAL_CALL DocumentEventNotifier_Impl::acquire() throw ()
{
osl_atomic_increment( &m_refCount );
}
void SAL_CALL DocumentEventNotifier_Impl::release()
void SAL_CALL DocumentEventNotifier_Impl::release() throw ()
{
if ( 0 == osl_atomic_decrement( &m_refCount ) )
delete this;
......
......@@ -76,8 +76,8 @@ namespace comphelper
*/
virtual void processEvent( const AnyEvent& _rEvent ) = 0;
virtual void SAL_CALL acquire() = 0;
virtual void SAL_CALL release() = 0;
virtual void SAL_CALL acquire() throw () = 0;
virtual void SAL_CALL release() throw () = 0;
protected:
~IEventProcessor() {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment