diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-09-22 12:26:29 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-09-22 18:54:52 +0000 |
commit | a19f981ea1c31a9a3af4a9368dc50f045701a047 (patch) | |
tree | 12f2c8415eab22c334a2722b5472a62d1c8abbff /sc | |
parent | c439d55042c5815b57987238b0e074869004196d (diff) |
convert Link<> to typed
Change-Id: I684a72cc3eeff0caf27132ff641f0d3b20ff7c08
Reviewed-on: https://gerrit.libreoffice.org/18770
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/inc/gridwin.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx index 5bcbac5d941f..b9af88a0851e 100644 --- a/sc/source/ui/inc/gridwin.hxx +++ b/sc/source/ui/inc/gridwin.hxx @@ -201,7 +201,7 @@ class ScGridWindow : public vcl::Window, public DropTargetHelper, public DragSou bool bListValButton:1; DECL_LINK_TYPED( PopupModeEndHdl, FloatingWindow*, void ); - DECL_LINK( PopupSpellingHdl, SpellCallbackInfo* ); + DECL_LINK_TYPED( PopupSpellingHdl, SpellCallbackInfo&, void ); bool TestMouse( const MouseEvent& rMEvt, bool bAction ); diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index d8bbe92c54f7..cf5d7b6b2fe2 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -584,11 +584,10 @@ IMPL_LINK_NOARG_TYPED(ScGridWindow, PopupModeEndHdl, FloatingWindow*, void) GrabFocus(); } -IMPL_LINK( ScGridWindow, PopupSpellingHdl, SpellCallbackInfo*, pInfo ) +IMPL_LINK_TYPED( ScGridWindow, PopupSpellingHdl, SpellCallbackInfo&, rInfo, void ) { - if( pInfo->nCommand == SpellCallbackCommand::STARTSPELLDLG ) + if( rInfo.nCommand == SpellCallbackCommand::STARTSPELLDLG ) pViewData->GetDispatcher().Execute( SID_SPELL_DIALOG, SfxCallMode::ASYNCHRON ); - return 0; } void ScGridWindow::ExecPageFieldSelect( SCCOL nCol, SCROW nRow, bool bHasSelection, const OUString& rStr ) @@ -3180,7 +3179,7 @@ void ScGridWindow::Command( const CommandEvent& rCEvt ) if (pHdl) pHdl->SetModified(); - Link<> aLink = LINK( this, ScGridWindow, PopupSpellingHdl ); + Link<SpellCallbackInfo&,void> aLink = LINK( this, ScGridWindow, PopupSpellingHdl ); pEditView->ExecuteSpellPopup( aMenuPos, &aLink ); bDone = true; |