diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-26 14:59:38 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-27 06:09:29 +0000 |
commit | 883172375dbf5c0a79cbda5b615ff26ed27c78be (patch) | |
tree | 5d81ab1b28e7509a26148b602fd14f8c5c83642f /svx/source/accessibility/AccessibleFrameSelector.cxx | |
parent | a7ea18ffe715776cb0e2b39e98569c75605ee332 (diff) |
loplugin:expandablemethods in svx
Change-Id: I0d193ddf07cc0ddc89b6ce2df6eb71d44e49b631
Reviewed-on: https://gerrit.libreoffice.org/30295
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/accessibility/AccessibleFrameSelector.cxx')
-rw-r--r-- | svx/source/accessibility/AccessibleFrameSelector.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/svx/source/accessibility/AccessibleFrameSelector.cxx b/svx/source/accessibility/AccessibleFrameSelector.cxx index 6ecb7978f64d..26ae123968d0 100644 --- a/svx/source/accessibility/AccessibleFrameSelector.cxx +++ b/svx/source/accessibility/AccessibleFrameSelector.cxx @@ -483,16 +483,10 @@ IMPL_LINK( AccFrameSelector, WindowEventListener, VclWindowEvent&, rEvent, void { vcl::Window* pWindow = rEvent.GetWindow(); DBG_ASSERT( pWindow, "AccFrameSelector::WindowEventListener: no window!" ); - if ( !pWindow->IsAccessibilityEventsSuppressed() || ( rEvent.GetId() == VCLEVENT_OBJECT_DYING ) ) - { - ProcessWindowEvent( rEvent ); - } -} + if ( pWindow->IsAccessibilityEventsSuppressed() && ( rEvent.GetId() != VCLEVENT_OBJECT_DYING ) ) + return; - -void AccFrameSelector::ProcessWindowEvent( const VclWindowEvent& rVclWindowEvent ) -{ - switch ( rVclWindowEvent.GetId() ) + switch ( rEvent.GetId() ) { case VCLEVENT_WINDOW_GETFOCUS: { |