diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-09-22 21:53:44 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-09-23 13:06:21 +0000 |
commit | 28329d7cacdf8c37a9c1863530615e1b9cfa6935 (patch) | |
tree | b21b59366d68902ab6ae7cc548cb466fcc3dd297 /sw/source/uibase/utlui | |
parent | aada49a5743c298e461660420fe48ef4c220e292 (diff) |
convert Link<> to typed
Change-Id: I9a7f38b2babf6c599f0c2709b32ecb8083fd32cc
Reviewed-on: https://gerrit.libreoffice.org/18799
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sw/source/uibase/utlui')
-rw-r--r-- | sw/source/uibase/utlui/navipi.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/uibase/utlui/navipi.cxx b/sw/source/uibase/utlui/navipi.cxx index d20b7e95dfb9..83866745c522 100644 --- a/sw/source/uibase/utlui/navipi.cxx +++ b/sw/source/uibase/utlui/navipi.cxx @@ -454,18 +454,17 @@ void SwNavHelpToolBox::RequestHelp( const HelpEvent& rHEvt ) // Action-Handler Edit: // Switches to the page if the structure view is not turned on. -IMPL_LINK( SwNavigationPI, EditAction, NumEditAction *, pEdit ) +IMPL_LINK_TYPED( SwNavigationPI, EditAction, NumEditAction&, rEdit, void ) { SwView *pView = GetCreateView(); if (pView) { if(aPageChgIdle.IsActive()) aPageChgIdle.Stop(); - pCreateView->GetWrtShell().GotoPage((sal_uInt16)pEdit->GetValue(), true); + pCreateView->GetWrtShell().GotoPage((sal_uInt16)rEdit.GetValue(), true); pCreateView->GetEditWin().GrabFocus(); pCreateView->GetViewFrame()->GetBindings().Invalidate(FN_STAT_PAGE); } - return 0; } // If the page can be set here, the maximum is set. @@ -1250,7 +1249,7 @@ IMPL_LINK_NOARG_TYPED(SwNavigationPI, ChangePageHdl, Idle *, void) { if (!IsDisposed()) { - EditAction(&GetPageEdit()); + EditAction(GetPageEdit()); GetPageEdit().GrabFocus(); } } |