From 2b30479d56f8084efd7032dc2475fda496cf2903 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 7 Sep 2015 16:06:52 +0200 Subject: convert Link<> to typed Change-Id: I4cbb32b6801386f0bef61f9f5c7cde7306c8b9f2 --- basctl/source/basicide/moduldl2.cxx | 6 +++--- basctl/source/basicide/moduldlg.hxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index bc0d1ff5abcd..d9ca3cbc5670 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -706,9 +706,9 @@ IMPL_LINK_TYPED( LibPage, ButtonHdl, Button *, pButton, void ) CheckButtons(); } -IMPL_LINK( LibPage, CheckPasswordHdl, SvxPasswordDialog *, pDlg ) +IMPL_LINK_TYPED( LibPage, CheckPasswordHdl, SvxPasswordDialog *, pDlg, bool ) { - long nRet = 0; + bool nRet = false; SvTreeListEntry* pCurEntry = m_pLibBox->GetCurEntry(); OUString aLibName( SvTabListBox::GetEntryText( pCurEntry, 0 ) ); @@ -721,7 +721,7 @@ IMPL_LINK( LibPage, CheckPasswordHdl, SvxPasswordDialog *, pDlg ) OUString aOldPassword( pDlg->GetOldPassword() ); OUString aNewPassword( pDlg->GetNewPassword() ); xPasswd->changeLibraryPassword( aLibName, aOldPassword, aNewPassword ); - nRet = 1; + nRet = true; } catch (...) { diff --git a/basctl/source/basicide/moduldlg.hxx b/basctl/source/basicide/moduldlg.hxx index 1c56dced5993..d7e16514ad86 100644 --- a/basctl/source/basicide/moduldlg.hxx +++ b/basctl/source/basicide/moduldlg.hxx @@ -232,7 +232,7 @@ protected: DECL_LINK_TYPED( TreeListHighlightHdl, SvTreeListBox *, void ); DECL_LINK( BasicSelectHdl, ListBox * ); DECL_LINK_TYPED( ButtonHdl, Button *, void ); - DECL_LINK( CheckPasswordHdl, SvxPasswordDialog * ); + DECL_LINK_TYPED( CheckPasswordHdl, SvxPasswordDialog *, bool ); void CheckButtons(); void DeleteCurrent(); void NewLib(); -- cgit