diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-07 14:26:19 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-08 08:16:47 +0200 |
commit | 20646c4c0115a298560f9cff4aeaba9503f65977 (patch) | |
tree | 7ce71a9aec29bc2a7560cb619bdc36be8f6ef570 /sw | |
parent | 8ad9cc042416c7b4ef89644b60928588f0505798 (diff) |
convert Link<> to typed
Change-Id: I7c7a4bbaa4670e873599ad2533a1c2de713cf53f
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/inc/redlndlg.hxx | 10 | ||||
-rw-r--r-- | sw/source/uibase/misc/redlndlg.cxx | 16 |
2 files changed, 10 insertions, 16 deletions
diff --git a/sw/source/uibase/inc/redlndlg.hxx b/sw/source/uibase/inc/redlndlg.hxx index 93350fc0ed46..db8128f869ff 100644 --- a/sw/source/uibase/inc/redlndlg.hxx +++ b/sw/source/uibase/inc/redlndlg.hxx @@ -88,11 +88,11 @@ class SW_DLLPUBLIC SwRedlineAcceptDlg // prevent update dialog data during longer operations (cf #102657#) bool bInhibitActivate; - DECL_DLLPRIVATE_LINK( AcceptHdl, void* ); - DECL_DLLPRIVATE_LINK( AcceptAllHdl, void* ); - DECL_DLLPRIVATE_LINK( RejectHdl, void* ); - DECL_DLLPRIVATE_LINK( RejectAllHdl, void* ); - DECL_DLLPRIVATE_LINK( UndoHdl, void* ); + DECL_DLLPRIVATE_LINK_TYPED( AcceptHdl, SvxTPView*, void ); + DECL_DLLPRIVATE_LINK_TYPED( AcceptAllHdl, SvxTPView*, void ); + DECL_DLLPRIVATE_LINK_TYPED( RejectHdl, SvxTPView*, void ); + DECL_DLLPRIVATE_LINK_TYPED( RejectAllHdl, SvxTPView*, void ); + DECL_DLLPRIVATE_LINK_TYPED( UndoHdl, SvxTPView*, void ); DECL_DLLPRIVATE_LINK_TYPED( DeselectHdl, SvTreeListBox*, void ); DECL_DLLPRIVATE_LINK_TYPED( SelectHdl, SvTreeListBox*, void ); DECL_DLLPRIVATE_LINK_TYPED( SelectTimerHdl, Timer*, void ); diff --git a/sw/source/uibase/misc/redlndlg.cxx b/sw/source/uibase/misc/redlndlg.cxx index f6cd7eb36264..d0b544a59b84 100644 --- a/sw/source/uibase/misc/redlndlg.cxx +++ b/sw/source/uibase/misc/redlndlg.cxx @@ -883,31 +883,27 @@ sal_uInt16 SwRedlineAcceptDlg::GetRedlinePos( const SvTreeListEntry& rEntry ) co rEntry.GetUserData())->pData)->pData ); } -IMPL_LINK_NOARG(SwRedlineAcceptDlg, AcceptHdl) +IMPL_LINK_NOARG_TYPED(SwRedlineAcceptDlg, AcceptHdl, SvxTPView*, void) { CallAcceptReject( true, true ); - return 0; } -IMPL_LINK_NOARG(SwRedlineAcceptDlg, AcceptAllHdl) +IMPL_LINK_NOARG_TYPED(SwRedlineAcceptDlg, AcceptAllHdl, SvxTPView*, void) { CallAcceptReject( false, true ); - return 0; } -IMPL_LINK_NOARG(SwRedlineAcceptDlg, RejectHdl) +IMPL_LINK_NOARG_TYPED(SwRedlineAcceptDlg, RejectHdl, SvxTPView*, void) { CallAcceptReject( true, false ); - return 0; } -IMPL_LINK_NOARG(SwRedlineAcceptDlg, RejectAllHdl) +IMPL_LINK_NOARG_TYPED(SwRedlineAcceptDlg, RejectAllHdl, SvxTPView*, void) { CallAcceptReject( false, false ); - return 0; } -IMPL_LINK_NOARG(SwRedlineAcceptDlg, UndoHdl) +IMPL_LINK_NOARG_TYPED(SwRedlineAcceptDlg, UndoHdl, SvxTPView*, void) { SwView * pView = ::GetActiveView(); pView->GetViewFrame()->GetDispatcher()-> @@ -915,8 +911,6 @@ IMPL_LINK_NOARG(SwRedlineAcceptDlg, UndoHdl) pTPView->EnableUndo(pView->GetSlotState(SID_UNDO) != 0); Activate(); - - return 0; } IMPL_LINK_NOARG_TYPED(SwRedlineAcceptDlg, FilterChangedHdl, SvxTPFilter*, void) |