summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2015-09-24 13:53:17 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-09-24 16:19:37 +0000
commite85b2333bce7b1dcae73861df6d90b48b9f4efe5 (patch)
tree21d066cecfbfda9ace96b26953ddcc3ae1764001 /svtools
parentff6462e6307e6924dc6c8178043ae9032f4b4152 (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 'svtools')
-rw-r--r--svtools/source/dialogs/addresstemplate.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx
index b39546f6cce5..40a4a4eefcb3 100644
--- a/svtools/source/dialogs/addresstemplate.cxx
+++ b/svtools/source/dialogs/addresstemplate.cxx
@@ -1131,16 +1131,16 @@ void AssignmentPersistentData::ImplCommit()
}
- IMPL_STATIC_LINK(
- AddressBookSourceDialog, OnComboGetFocus, ComboBox*, _pBox)
+ IMPL_STATIC_LINK_TYPED(
+ AddressBookSourceDialog, OnComboGetFocus, Control&, _rBox, void)
{
- _pBox->SaveValue();
- return 0L;
+ static_cast<ComboBox&>(_rBox).SaveValue();
}
- IMPL_LINK(AddressBookSourceDialog, OnComboLoseFocus, ComboBox*, _pBox)
+ IMPL_LINK_TYPED(AddressBookSourceDialog, OnComboLoseFocus, Control&, rControl, void)
{
+ ComboBox* _pBox = static_cast<ComboBox*>(&rControl);
if ( _pBox->IsValueChangedFromSaved() )
{
if (_pBox == m_pDatasource)
@@ -1148,7 +1148,6 @@ void AssignmentPersistentData::ImplCommit()
else
resetFields();
}
- return 0L;
}