diff options
author | Noel Grandin <noel@peralex.com> | 2015-10-15 08:13:49 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-10-16 09:11:29 +0000 |
commit | 6f1313b3d44ea54e9a331e0fc00871081fa662fe (patch) | |
tree | fa6d9b6da04daedcb63ea2a0bc8c414288ed8bc6 /sc/source/ui/dbgui/dbnamdlg.cxx | |
parent | 14bf708ef586b15dffed66ffaf524baf4d8fcbfa (diff) |
convert Link<> to typed
Change-Id: Icbba339dac0be31e30dff021bba06a219f8aecd6
Reviewed-on: https://gerrit.libreoffice.org/19405
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc/source/ui/dbgui/dbnamdlg.cxx')
-rw-r--r-- | sc/source/ui/dbgui/dbnamdlg.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx index f35e7649b518..211a52216fad 100644 --- a/sc/source/ui/dbgui/dbnamdlg.cxx +++ b/sc/source/ui/dbgui/dbnamdlg.cxx @@ -266,7 +266,7 @@ void ScDbNameDlg::Init() m_pEdName->GrabFocus(); bSaved = true; pSaveObj->Save(); - NameModifyHdl( 0 ); + NameModifyHdl( *m_pEdName ); } void ScDbNameDlg::SetInfoStrings( const ScDBData* pDBData ) @@ -481,7 +481,7 @@ IMPL_LINK_NOARG_TYPED(ScDbNameDlg, AddBtnHdl, Button*, void) theCurArea = ScRange(); bSaved = true; pSaveObj->Save(); - NameModifyHdl( 0 ); + NameModifyHdl( *m_pEdName ); } else { @@ -560,12 +560,12 @@ IMPL_LINK_NOARG_TYPED(ScDbNameDlg, RemoveBtnHdl, Button*, void) SetInfoStrings( NULL ); // leer bSaved=false; pSaveObj->Restore(); - NameModifyHdl( 0 ); + NameModifyHdl( *m_pEdName ); } } } -IMPL_LINK_NOARG(ScDbNameDlg, NameModifyHdl) +IMPL_LINK_NOARG_TYPED(ScDbNameDlg, NameModifyHdl, Edit&, void) { OUString theName = m_pEdName->GetText(); bool bNameFound = (COMBOBOX_ENTRY_NOTFOUND @@ -626,10 +626,9 @@ IMPL_LINK_NOARG(ScDbNameDlg, NameModifyHdl) //SFX_APPWINDOW->Enable(); bRefInputMode = true; } - return 0; } -IMPL_LINK_NOARG(ScDbNameDlg, AssModifyHdl) +IMPL_LINK_NOARG_TYPED(ScDbNameDlg, AssModifyHdl, Edit&, void) { // hier parsen fuer Save() etc. @@ -660,8 +659,6 @@ IMPL_LINK_NOARG(ScDbNameDlg, AssModifyHdl) m_pFTSource->Disable(); m_pFTOperations->Disable(); } - - return 0; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |