diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-08 12:45:38 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-09 10:06:12 +0200 |
commit | 78b124143a3c2bd82984c1c06aa3265c211cef13 (patch) | |
tree | b48ab1bf75f7b9d548bec8b1c0427d733cc48ecf /sc/source | |
parent | convert Link<> to typed (diff) | |
download | core-78b124143a3c2bd82984c1c06aa3265c211cef13.tar.gz core-78b124143a3c2bd82984c1c06aa3265c211cef13.zip |
convert Link<> to typed
Change-Id: I2f36a123662488ef5534f7bf0845d61e497fb0ec
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/inc/anyrefdg.hxx | 2 | ||||
-rw-r--r-- | sc/source/ui/miscdlgs/anyrefdg.cxx | 8 |
2 files changed, 3 insertions, 7 deletions
diff --git a/sc/source/ui/inc/anyrefdg.hxx b/sc/source/ui/inc/anyrefdg.hxx index 77b073a89751..df1f723d1dfa 100644 --- a/sc/source/ui/inc/anyrefdg.hxx +++ b/sc/source/ui/inc/anyrefdg.hxx @@ -69,7 +69,7 @@ class ScFormulaReferenceHelper bool bHighlightRef; bool bAccInserted; - DECL_LINK( AccelSelectHdl, Accelerator* ); + DECL_LINK_TYPED( AccelSelectHdl, Accelerator&, void ); public: ScFormulaReferenceHelper(IAnyRefDialog* _pDlg,SfxBindings* _pBindings); diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx index 422ca25103c9..28ec44d1b46d 100644 --- a/sc/source/ui/miscdlgs/anyrefdg.cxx +++ b/sc/source/ui/miscdlgs/anyrefdg.cxx @@ -339,12 +339,9 @@ void ScFormulaReferenceHelper::Init() } } -IMPL_LINK( ScFormulaReferenceHelper, AccelSelectHdl, Accelerator *, pSelAccel ) +IMPL_LINK_TYPED( ScFormulaReferenceHelper, AccelSelectHdl, Accelerator&, rSelAccel, void ) { - if ( !pSelAccel ) - return long(false); - - switch ( pSelAccel->GetCurKeyCode().GetCode() ) + switch ( rSelAccel.GetCurKeyCode().GetCode() ) { case KEY_RETURN: case KEY_ESCAPE: @@ -353,7 +350,6 @@ IMPL_LINK( ScFormulaReferenceHelper, AccelSelectHdl, Accelerator *, pSelAccel ) m_pDlg->RefInputDone( true ); break; } - return long(true); } void ScFormulaReferenceHelper::RefInputDone( bool bForced ) |