summaryrefslogtreecommitdiff
path: root/sc/source/ui/formdlg
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-09-16 16:10:05 +0200
committerNoel Grandin <noel@peralex.com>2015-09-17 08:19:34 +0200
commit1e2119fd0211b671cad7ba7005a99a1da1a0caf5 (patch)
treec4298af25e9a082066ad98a69c5c6c281a360ac5 /sc/source/ui/formdlg
parentf4f05ab199101b9f11718ddc82e139815c1fc521 (diff)
convert Link<> to typed
Change-Id: I3d35a0bb75b6989dd13371543d1bdf3ef5f47641
Diffstat (limited to 'sc/source/ui/formdlg')
-rw-r--r--sc/source/ui/formdlg/dwfunctr.cxx17
1 files changed, 5 insertions, 12 deletions
diff --git a/sc/source/ui/formdlg/dwfunctr.cxx b/sc/source/ui/formdlg/dwfunctr.cxx
index d10ae1fbe914..827371ab9338 100644
--- a/sc/source/ui/formdlg/dwfunctr.cxx
+++ b/sc/source/ui/formdlg/dwfunctr.cxx
@@ -129,8 +129,7 @@ ScFunctionDockWin::ScFunctionDockWin( SfxBindings* pBindingsP,
aFuncList->SetSelectHdl(aLink);
aDDFuncList->SetSelectHdl(aLink);
- Link<> a2Link=LINK( this, ScFunctionDockWin, SetSelectionHdl);
- aFuncList->SetDoubleClickHdl(a2Link);
+ aFuncList->SetDoubleClickHdl(LINK( this, ScFunctionDockWin, SetSelectionHdl));
aDDFuncList->SetSelectHdl(aLink);
aInsertButton->SetClickHdl(LINK( this, ScFunctionDockWin, SetSelectionClickHdl));
@@ -955,19 +954,13 @@ IMPL_LINK( ScFunctionDockWin, SelHdl, ListBox*, pLb )
#*
#************************************************************************/
-IMPL_LINK_TYPED( ScFunctionDockWin, SetSelectionClickHdl, Button*, pCtrl, void )
+IMPL_LINK_NOARG_TYPED( ScFunctionDockWin, SetSelectionClickHdl, Button*, void )
{
- SetSelectionHdl(pCtrl);
+ DoEnter(); // Uebernimmt die Eingabe
}
-IMPL_LINK( ScFunctionDockWin, SetSelectionHdl, void*, pCtrl )
+IMPL_LINK_NOARG_TYPED( ScFunctionDockWin, SetSelectionHdl, ListBox&, void )
{
- if (static_cast<ImageButton *>(pCtrl) == aInsertButton.get() ||
- static_cast<ListBox *>(pCtrl) == aFuncList.get())
- {
- DoEnter(); // Uebernimmt die Eingabe
- }
-
- return 0;
+ DoEnter(); // Uebernimmt die Eingabe
}
/*************************************************************************