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 /sd/source/ui/slidesorter | |
parent | c916152d8562cab868d4c522748ac30029fad179 (diff) |
convert Link<> to typed
Change-Id: If3e2b00092440ebd42ae5b73ae2b0e44c3702683
Diffstat (limited to 'sd/source/ui/slidesorter')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlideSorterController.cxx | 6 | ||||
-rw-r--r-- | sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx index 3b342467b363..845f4b8ba075 100644 --- a/sd/source/ui/slidesorter/controller/SlideSorterController.cxx +++ b/sd/source/ui/slidesorter/controller/SlideSorterController.cxx @@ -540,11 +540,9 @@ void SlideSorterController::HandleModelChange() } } -IMPL_LINK(SlideSorterController, ApplicationEventHandler, VclWindowEvent*, pEvent) +IMPL_LINK_TYPED(SlideSorterController, ApplicationEventHandler, VclSimpleEvent&, rEvent, void) { - if (pEvent) - WindowEventHandler(*pEvent); - return 1; + WindowEventHandler(static_cast<VclWindowEvent&>(rEvent)); } IMPL_LINK_TYPED(SlideSorterController, WindowEventHandler, VclWindowEvent&, rEvent, void) { diff --git a/sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx b/sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx index e47ed18795d8..2127793e703b 100644 --- a/sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx +++ b/sd/source/ui/slidesorter/inc/controller/SlideSorterController.hxx @@ -161,7 +161,7 @@ public: void HandleModelChange(); DECL_LINK_TYPED(WindowEventHandler, VclWindowEvent&, void); - DECL_LINK(ApplicationEventHandler, VclWindowEvent*); + DECL_LINK_TYPED(ApplicationEventHandler, VclSimpleEvent&, void); /** Update the display of all pages. This involves a redraw and releasing previews and caches. |