diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2015-10-04 15:05:38 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-12 10:48:13 +0000 |
commit | 3c99f8500f657ed84b316390d5175a6f5e56bc69 (patch) | |
tree | 749f16652560a50d409b12a23bf1a5d93b3cd2d5 /formula | |
parent | bbadb38539eb233ac45b267034066a7274181c65 (diff) |
convert Link<> to typed
Change-Id: Iec15042138e0715459b2c9e872a7464d75a6b1eb
Reviewed-on: https://gerrit.libreoffice.org/19305
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'formula')
-rw-r--r-- | formula/source/ui/dlg/funcpage.cxx | 7 | ||||
-rw-r--r-- | formula/source/ui/dlg/funcpage.hxx | 2 |
2 files changed, 4 insertions, 5 deletions
diff --git a/formula/source/ui/dlg/funcpage.cxx b/formula/source/ui/dlg/funcpage.cxx index 539b8f28b5bf..58d6461d171c 100644 --- a/formula/source/ui/dlg/funcpage.cxx +++ b/formula/source/ui/dlg/funcpage.cxx @@ -157,12 +157,12 @@ void FuncPage::UpdateFunctionList() m_pLbFunction->SetUpdateMode( true ); m_pLbFunction->SelectEntryPos(0); - if(IsVisible()) SelHdl(m_pLbFunction); + if(IsVisible()) SelHdl(*m_pLbFunction); } -IMPL_LINK( FuncPage, SelHdl, ListBox*, pLb ) +IMPL_LINK_TYPED( FuncPage, SelHdl, ListBox&, rLb, void ) { - if(pLb==m_pLbFunction) + if(&rLb==m_pLbFunction) { const IFunctionDescription* pDesc = GetFuncDesc( GetFunction() ); if ( pDesc ) @@ -178,7 +178,6 @@ IMPL_LINK( FuncPage, SelHdl, ListBox*, pLb ) m_pLbFunction->SetHelpId(m_aHelpId); UpdateFunctionList(); } - return 0; } IMPL_LINK_NOARG_TYPED(FuncPage, DblClkHdl, ListBox&, void) diff --git a/formula/source/ui/dlg/funcpage.hxx b/formula/source/ui/dlg/funcpage.hxx index 7ef74fad608d..04ceb66a482c 100644 --- a/formula/source/ui/dlg/funcpage.hxx +++ b/formula/source/ui/dlg/funcpage.hxx @@ -72,7 +72,7 @@ private: void impl_addFunctions(const IFunctionCategory* _pCategory); - DECL_LINK( SelHdl, ListBox* ); + DECL_LINK_TYPED( SelHdl, ListBox&, void ); DECL_LINK_TYPED(DblClkHdl, ListBox&, void); protected: |