diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-28 16:35:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-31 09:50:11 +0200 |
commit | b6e95a8c9997e03099492079ebc34c4a47b8b502 (patch) | |
tree | 9955ffbc914a27e1589c22e3f2fbc0d4edb7b503 /sw | |
parent | 410c06bec452b09cd15ddfcb82b8b2b0508f3c55 (diff) |
convert Link<> to typed
and remove some dead code
Change-Id: I6a42dbaea5053b4aa3c47b3f154410b05f32dfe4
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/view.hxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewmdi.cxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sw/inc/view.hxx b/sw/inc/view.hxx index 6398b92f192c..62f3748d6a01 100644 --- a/sw/inc/view.hxx +++ b/sw/inc/view.hxx @@ -502,7 +502,7 @@ public: void ExecDraw(SfxRequest&); void ExecTabWin(SfxRequest&); void ExecuteStatusLine(SfxRequest&); - DECL_LINK( ExecRulerClick, Ruler * ); + DECL_LINK_TYPED( ExecRulerClick, Ruler *, void ); void ExecSearch(SfxRequest&, bool bNoMessage = false); void ExecViewOptions(SfxRequest &); diff --git a/sw/source/uibase/uiview/viewmdi.cxx b/sw/source/uibase/uiview/viewmdi.cxx index 49424a6e864d..3674f78f035e 100644 --- a/sw/source/uibase/uiview/viewmdi.cxx +++ b/sw/source/uibase/uiview/viewmdi.cxx @@ -527,7 +527,7 @@ int SwView::KillVRuler() return 1; } -IMPL_LINK( SwView, ExecRulerClick, Ruler *, pRuler ) +IMPL_LINK_TYPED( SwView, ExecRulerClick, Ruler *, pRuler, void ) { OUString sDefPage; switch( pRuler->GetClickType() ) @@ -548,7 +548,6 @@ IMPL_LINK( SwView, ExecRulerClick, Ruler *, pRuler ) GetViewFrame()->GetDispatcher()->Execute( SID_PARA_DLG, SfxCallMode::SYNCHRON|SfxCallMode::RECORD, &aDefPage, 0L ); - return 0; } sal_uInt16 SwView::GetMoveType() |