summaryrefslogtreecommitdiff
path: root/sc/source/ui/formdlg
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-23 10:28:42 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-23 13:08:54 +0000
commitb198cb8f53fb442758e5abd3d271238a2d0c1b1c (patch)
treeb74a58856b39ac364f1177ade3dccc0fbe6045e8 /sc/source/ui/formdlg
parentb43226b9bd788bbd76d6b064eda62ebd71f71e68 (diff)
convert Link<> to typed
Change-Id: I282ea95e748ea52099a84fd3e8e8151e03ce25f9 Reviewed-on: https://gerrit.libreoffice.org/18806 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/formdlg')
-rw-r--r--sc/source/ui/formdlg/dwfunctr.cxx8
-rw-r--r--sc/source/ui/formdlg/privsplt.cxx2
2 files changed, 4 insertions, 6 deletions
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx
index 827371ab9338..766575a007b3 100644
--- a/sc/source/ui/formdlg/dwfunctr.cxx
+++ b/sc/source/ui/formdlg/dwfunctr.cxx
@@ -133,7 +133,7 @@ ScFunctionDockWin::ScFunctionDockWin( SfxBindings* pBindingsP,
aDDFuncList->SetSelectHdl(aLink);
aInsertButton->SetClickHdl(LINK( this, ScFunctionDockWin, SetSelectionClickHdl));
- Link<> a3Link=LINK( this, ScFunctionDockWin, SetSplitHdl);
+ Link<ScPrivatSplit&,void> a3Link=LINK( this, ScFunctionDockWin, SetSplitHdl);
aPrivatSplit->SetCtrModifiedHdl(a3Link);
StartListening( *pBindingsP, true );
@@ -978,9 +978,9 @@ IMPL_LINK_NOARG_TYPED( ScFunctionDockWin, SetSelectionHdl, ListBox&, void )
#*
#************************************************************************/
-IMPL_LINK( ScFunctionDockWin, SetSplitHdl, ScPrivatSplit*, pCtrl )
+IMPL_LINK_TYPED( ScFunctionDockWin, SetSplitHdl, ScPrivatSplit&, rCtrl, void )
{
- if (pCtrl == aPrivatSplit.get())
+ if (&rCtrl == aPrivatSplit.get())
{
short nDeltaY=aPrivatSplit->GetDeltaY();
Size aFLSize=aFuncList->GetSizePixel();
@@ -994,8 +994,6 @@ IMPL_LINK( ScFunctionDockWin, SetSplitHdl, ScPrivatSplit*, pCtrl )
aFiFuncDesc->SetPosPixel(aFDTopLeft);
aFiFuncDesc->SetSizePixel(aFDSize);
}
-
- return 0;
}
void ScFunctionDockWin::ToggleFloatingMode()
diff --git a/sc/source/ui/formdlg/privsplt.cxx b/sc/source/ui/formdlg/privsplt.cxx
index ee8d6e33ccde..72adb6dd0335 100644
--- a/sc/source/ui/formdlg/privsplt.cxx
+++ b/sc/source/ui/formdlg/privsplt.cxx
@@ -221,7 +221,7 @@ short ScPrivatSplit::GetDeltaY()
#************************************************************************/
void ScPrivatSplit::CtrModified()
{
- aCtrModifiedLink.Call( this );
+ aCtrModifiedLink.Call( *this );
}
void ScPrivatSplit::MoveSplitTo(Point aPos)