From a19f981ea1c31a9a3af4a9368dc50f045701a047 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 22 Sep 2015 12:26:29 +0200 Subject: convert Link<> to typed Change-Id: I684a72cc3eeff0caf27132ff641f0d3b20ff7c08 Reviewed-on: https://gerrit.libreoffice.org/18770 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- sw/source/uibase/uiview/viewdraw.cxx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sw/source/uibase/uiview/viewdraw.cxx') diff --git a/sw/source/uibase/uiview/viewdraw.cxx b/sw/source/uibase/uiview/viewdraw.cxx index d342512ac89f..5001cee6fcf2 100644 --- a/sw/source/uibase/uiview/viewdraw.cxx +++ b/sw/source/uibase/uiview/viewdraw.cxx @@ -725,11 +725,10 @@ bool SwView::HasOnlyObj(SdrObject *pSdrObj, sal_uInt32 eObjInventor) const } //#i87414# mod -IMPL_LINK(SwView, OnlineSpellCallback, SpellCallbackInfo*, pInfo) +IMPL_LINK_TYPED(SwView, OnlineSpellCallback, SpellCallbackInfo&, rInfo, void) { - if (pInfo->nCommand == SpellCallbackCommand::STARTSPELLDLG) + if (rInfo.nCommand == SpellCallbackCommand::STARTSPELLDLG) GetViewFrame()->GetDispatcher()->Execute( FN_SPELL_GRAMMAR_DIALOG, SfxCallMode::ASYNCHRON); - return 0; } bool SwView::ExecDrwTextSpellPopup(const Point& rPt) @@ -742,7 +741,7 @@ bool SwView::ExecDrwTextSpellPopup(const Point& rPt) if (pOLV->IsWrongSpelledWordAtPos( aPos )) { bRet = true; - Link<> aLink = LINK(this, SwView, OnlineSpellCallback); + Link aLink = LINK(this, SwView, OnlineSpellCallback); pOLV->ExecuteSpellPopup( aPos,&aLink ); } return bRet; -- cgit v1.2.3