From 37603521c0a6a0a34174a5020a6999ffb9d041d8 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 2 Sep 2015 14:31:19 +0200 Subject: convert Link<> to typed Change-Id: I8bea5ac685b0076649412bd95501461242797d77 Reviewed-on: https://gerrit.libreoffice.org/18266 Tested-by: Jenkins Reviewed-by: Noel Grandin --- reportdesign/source/ui/inc/DesignView.hxx | 2 +- reportdesign/source/ui/report/DesignView.cxx | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'reportdesign') diff --git a/reportdesign/source/ui/inc/DesignView.hxx b/reportdesign/source/ui/inc/DesignView.hxx index 55e5ab2cf46f..e756f8c16648 100644 --- a/reportdesign/source/ui/inc/DesignView.hxx +++ b/reportdesign/source/ui/inc/DesignView.hxx @@ -79,7 +79,7 @@ namespace rptui DECL_LINK_TYPED(MarkTimeout, Idle *, void); - DECL_LINK( SplitHdl, void* ); + DECL_LINK_TYPED( SplitHdl, SplitWindow*, void ); void ImplInitSettings(); diff --git a/reportdesign/source/ui/report/DesignView.cxx b/reportdesign/source/ui/report/DesignView.cxx index 4a014c0c0d9d..16feb175f956 100644 --- a/reportdesign/source/ui/report/DesignView.cxx +++ b/reportdesign/source/ui/report/DesignView.cxx @@ -403,7 +403,7 @@ void ODesignView::ImplInitSettings() SetTextFillColor( Application::GetSettings().GetStyleSettings().GetFaceColor() ); } -IMPL_LINK_NOARG( ODesignView, SplitHdl ) +IMPL_LINK_NOARG_TYPED( ODesignView, SplitHdl, SplitWindow*, void ) { const Size aOutputSize = GetOutputSizePixel(); const long nTest = aOutputSize.Width() * m_aSplitWin->GetItemSize(TASKPANE_ID) / 100; @@ -417,8 +417,6 @@ IMPL_LINK_NOARG( ODesignView, SplitHdl ) (void)nOldSplitPos; getController().setSplitPos(nTest); } - - return 0L; } void ODesignView::SelectAll(const sal_uInt16 _nObjectType) -- cgit