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 /starmath/source | |
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 'starmath/source')
-rw-r--r-- | starmath/source/dialog.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx index ff8ed3a060bf..8ada350c6309 100644 --- a/starmath/source/dialog.cxx +++ b/starmath/source/dialog.cxx @@ -689,25 +689,24 @@ SmCategoryDesc::~SmCategoryDesc() /**************************************************************************/ -IMPL_LINK( SmDistanceDialog, GetFocusHdl, Control *, pControl ) +IMPL_LINK_TYPED( SmDistanceDialog, GetFocusHdl, Control&, rControl, void ) { if (Categories[nActiveCategory]) { sal_uInt16 i; - if (pControl == m_pMetricField1) + if (&rControl == m_pMetricField1) i = 0; - else if (pControl == m_pMetricField2) + else if (&rControl == m_pMetricField2) i = 1; - else if (pControl == m_pMetricField3) + else if (&rControl == m_pMetricField3) i = 2; - else if (pControl == m_pMetricField4) + else if (&rControl == m_pMetricField4) i = 3; else - return 0; + return; m_pBitmap->SetImage(*(Categories[nActiveCategory]->GetGraphic(i))); } - return 0; } IMPL_LINK_TYPED( SmDistanceDialog, MenuSelectHdl, Menu *, pMenu, bool ) |