diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-21 08:03:25 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-21 08:03:52 +0200 |
commit | 1e67e94f1a308ca60d4934e9fe9d5c048225ebe8 (patch) | |
tree | c3bdf0fcec6912bc84e835fe48a80ee9f9391106 /vcl/source/control | |
parent | c916152d8562cab868d4c522748ac30029fad179 (diff) |
convert Link<> to typed
Change-Id: If3e2b00092440ebd42ae5b73ae2b0e44c3702683
Diffstat (limited to 'vcl/source/control')
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 2cda79ca6a34..a8f7a51a29d4 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -1008,19 +1008,17 @@ IMPL_LINK_NOARG(TabControl, ImplListBoxSelectHdl) return 0; } -IMPL_LINK( TabControl, ImplWindowEventListener, VclSimpleEvent*, pEvent ) +IMPL_LINK_TYPED( TabControl, ImplWindowEventListener, VclWindowEvent&, rEvent, void ) { - if ( pEvent && pEvent->ISA( VclWindowEvent ) && (pEvent->GetId() == VCLEVENT_WINDOW_KEYINPUT) ) + if ( rEvent.GetId() == VCLEVENT_WINDOW_KEYINPUT ) { - VclWindowEvent* pWindowEvent = static_cast< VclWindowEvent* >(pEvent); // Do not handle events from TabControl or its children, which is done in Notify(), where the events can be consumed. - if ( !IsWindowOrChild( pWindowEvent->GetWindow() ) ) + if ( !IsWindowOrChild( rEvent.GetWindow() ) ) { - KeyEvent* pKeyEvent = static_cast< KeyEvent* >(pWindowEvent->GetData()); + KeyEvent* pKeyEvent = static_cast< KeyEvent* >(rEvent.GetData()); ImplHandleKeyEvent( *pKeyEvent ); } } - return 0; } void TabControl::MouseButtonDown( const MouseEvent& rMEvt ) |