diff options
author | Noel Grandin <noel@peralex.com> | 2015-09-07 16:06:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-09-08 08:16:48 +0200 |
commit | 2b30479d56f8084efd7032dc2475fda496cf2903 (patch) | |
tree | 2be14f0110578ad9d54efecb3cae4f745c270180 /basctl | |
parent | convert Link<> to typed (diff) | |
download | core-2b30479d56f8084efd7032dc2475fda496cf2903.tar.gz core-2b30479d56f8084efd7032dc2475fda496cf2903.zip |
convert Link<> to typed
Change-Id: I4cbb32b6801386f0bef61f9f5c7cde7306c8b9f2
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/moduldl2.cxx | 6 | ||||
-rw-r--r-- | basctl/source/basicide/moduldlg.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
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(); |