From e85b2333bce7b1dcae73861df6d90b48b9f4efe5 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 24 Sep 2015 13:53:17 +0200 Subject: convert Link<> to typed Change-Id: I59d325c3b051690303a5841907317122fa1ec98b Reviewed-on: https://gerrit.libreoffice.org/18825 Tested-by: Jenkins Reviewed-by: Noel Grandin --- starmath/source/dialog.cxx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'starmath/source') 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 ) -- cgit v1.2.3