diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-09-24 13:53:17 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-09-24 16:19:37 +0000 |
commit | e85b2333bce7b1dcae73861df6d90b48b9f4efe5 (patch) | |
tree | 21d066cecfbfda9ace96b26953ddcc3ae1764001 /sc/source/ui/xmlsource | |
parent | ff6462e6307e6924dc6c8178043ae9032f4b4152 (diff) |
convert Link<> to typed
Change-Id: I59d325c3b051690303a5841907317122fa1ec98b
Reviewed-on: https://gerrit.libreoffice.org/18825
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/xmlsource')
-rw-r--r-- | sc/source/ui/xmlsource/xmlsourcedlg.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx index deb99aa3dab3..e5e8379d54f9 100644 --- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx +++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx @@ -99,13 +99,13 @@ ScXMLSourceDlg::ScXMLSourceDlg( mpBtnOk->SetClickHdl(aBtnHdl); mpBtnCancel->SetClickHdl(aBtnHdl); - Link<> aLink = LINK(this, ScXMLSourceDlg, GetFocusHdl); - mpRefEdit->SetGetFocusHdl(aLink); - mpRefBtn->SetGetFocusHdl(aLink); + Link<Control&,void> aLink2 = LINK(this, ScXMLSourceDlg, GetFocusHdl); + mpRefEdit->SetGetFocusHdl(aLink2); + mpRefBtn->SetGetFocusHdl(aLink2); mpLbTree->SetSelectHdl(LINK(this, ScXMLSourceDlg, TreeItemSelectHdl)); - aLink = LINK(this, ScXMLSourceDlg, RefModifiedHdl); + Link<> aLink = LINK(this, ScXMLSourceDlg, RefModifiedHdl); mpRefEdit->SetModifyHdl(aLink); mpBtnOk->Disable(); @@ -662,10 +662,9 @@ void ScXMLSourceDlg::RefEditModified() mpBtnOk->Enable(bHasLink); } -IMPL_LINK(ScXMLSourceDlg, GetFocusHdl, Control*, pCtrl) +IMPL_LINK_TYPED(ScXMLSourceDlg, GetFocusHdl, Control&, rCtrl, void) { - HandleGetFocus(pCtrl); - return 0; + HandleGetFocus(&rCtrl); } IMPL_LINK_TYPED(ScXMLSourceDlg, BtnPressedHdl, Button*, pBtn, void) |