diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-17 14:33:58 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-17 14:41:59 +0200 |
commit | 008de7099b29cde9a2669ef71b3e76b0c6ca90cd (patch) | |
tree | cfa107025f9ab2300dd8fc477a635a8b462a15e4 /sd/source/ui/view/FormShellManager.cxx | |
parent | cdadaa55569dbd1ea0fce3fa89f8b5f16f817438 (diff) |
convert Link<> to typed
Change-Id: I66e81dafa08b2e2a43b4b696741676e093439024
Diffstat (limited to 'sd/source/ui/view/FormShellManager.cxx')
-rw-r--r-- | sd/source/ui/view/FormShellManager.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sd/source/ui/view/FormShellManager.cxx b/sd/source/ui/view/FormShellManager.cxx index 2712dd4bbbef..02ffc9f91ece 100644 --- a/sd/source/ui/view/FormShellManager.cxx +++ b/sd/source/ui/view/FormShellManager.cxx @@ -57,7 +57,7 @@ FormShellManager::FormShellManager (ViewShellBase& rBase) { // Register at the EventMultiplexer to be informed about changes in the // center pane. - Link<> aLink (LINK(this, FormShellManager, ConfigurationUpdateHandler)); + Link<sd::tools::EventMultiplexerEvent&,void> aLink (LINK(this, FormShellManager, ConfigurationUpdateHandler)); mrBase.GetEventMultiplexer()->AddEventListener( aLink, sd::tools::EventMultiplexerEvent::EID_MAIN_VIEW_REMOVED @@ -73,7 +73,7 @@ FormShellManager::~FormShellManager() UnregisterAtCenterPane(); // Unregister from the EventMultiplexer. - Link<> aLink (LINK(this, FormShellManager, ConfigurationUpdateHandler)); + Link<sd::tools::EventMultiplexerEvent&,void> aLink (LINK(this, FormShellManager, ConfigurationUpdateHandler)); mrBase.GetEventMultiplexer()->RemoveEventListener(aLink); if (mpSubShellFactory.get() != NULL) @@ -198,9 +198,9 @@ IMPL_LINK_NOARG_TYPED(FormShellManager, FormControlActivated, LinkParamNone*, vo } } -IMPL_LINK(FormShellManager, ConfigurationUpdateHandler, sd::tools::EventMultiplexerEvent*, pEvent) +IMPL_LINK_TYPED(FormShellManager, ConfigurationUpdateHandler, sd::tools::EventMultiplexerEvent&, rEvent, void) { - switch (pEvent->meEventId) + switch (rEvent.meEventId) { case sd::tools::EventMultiplexerEvent::EID_MAIN_VIEW_REMOVED: UnregisterAtCenterPane(); @@ -221,8 +221,6 @@ IMPL_LINK(FormShellManager, ConfigurationUpdateHandler, sd::tools::EventMultiple default: break; } - - return 0; } IMPL_LINK(FormShellManager, WindowEventHandler, VclWindowEvent*, pEvent) |