diff options
Diffstat (limited to 'accessibility/source/extended/listboxaccessible.cxx')
-rw-r--r-- | accessibility/source/extended/listboxaccessible.cxx | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/accessibility/source/extended/listboxaccessible.cxx b/accessibility/source/extended/listboxaccessible.cxx index db388f3a5732..63cb02db16f7 100644 --- a/accessibility/source/extended/listboxaccessible.cxx +++ b/accessibility/source/extended/listboxaccessible.cxx @@ -46,22 +46,9 @@ namespace accessibility OSL_ENSURE( rEvent.GetWindow() , "ListBoxAccessibleBase::WindowEventListener: no event window!" ); OSL_ENSURE( rEvent.GetWindow() == m_pWindow, "ListBoxAccessibleBase::WindowEventListener: where did this come from?" ); - ProcessWindowEvent( rEvent ); - } - - void ListBoxAccessibleBase::disposing() - { - SolarMutexGuard g; - if ( m_pWindow ) - m_pWindow->RemoveEventListener( LINK( this, ListBoxAccessibleBase, WindowEventListener ) ); - m_pWindow = nullptr; - } - - void ListBoxAccessibleBase::ProcessWindowEvent( const VclWindowEvent& _rVclWindowEvent ) - { if ( isAlive() ) { - switch ( _rVclWindowEvent.GetId() ) + switch ( rEvent.GetId() ) { case VCLEVENT_OBJECT_DYING : { @@ -74,6 +61,15 @@ namespace accessibility } } } + + void ListBoxAccessibleBase::disposing() + { + SolarMutexGuard g; + if ( m_pWindow ) + m_pWindow->RemoveEventListener( LINK( this, ListBoxAccessibleBase, WindowEventListener ) ); + m_pWindow = nullptr; + } + } // namespace accessibility /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |