diff options
author | Noel Grandin <noel@peralex.com> | 2015-08-19 09:11:34 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-08-26 11:15:35 +0200 |
commit | 167bc621ef825ed5b961502fe9324a675ee34e42 (patch) | |
tree | 523838d8adc14a62f846529ee6eab3343b2fe87b /dbaccess/source/ui/dlg/UserAdmin.cxx | |
parent | 46a27805fb707544a844a961a3743b8b992282f0 (diff) |
Convert vcl Button Link<> click handler to typed Link<Button*,void>
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
Diffstat (limited to 'dbaccess/source/ui/dlg/UserAdmin.cxx')
-rw-r--r-- | dbaccess/source/ui/dlg/UserAdmin.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/dbaccess/source/ui/dlg/UserAdmin.cxx b/dbaccess/source/ui/dlg/UserAdmin.cxx index 5e9afea0f7ea..e4a7c8d46e9a 100644 --- a/dbaccess/source/ui/dlg/UserAdmin.cxx +++ b/dbaccess/source/ui/dlg/UserAdmin.cxx @@ -57,7 +57,7 @@ class OPasswordDialog : public ModalDialog VclPtr<Edit> m_pEDPasswordRepeat; VclPtr<OKButton> m_pOKBtn; - DECL_LINK( OKHdl_Impl, void * ); + DECL_LINK_TYPED( OKHdl_Impl, Button*, void ); DECL_LINK( ModifiedHdl, Edit * ); public: @@ -95,7 +95,7 @@ OPasswordDialog::OPasswordDialog(vcl::Window* _pParent,const OUString& _sUserNam m_pEDOldPassword->SetModifyHdl( LINK( this, OPasswordDialog, ModifiedHdl ) ); } -IMPL_LINK_NOARG(OPasswordDialog, OKHdl_Impl) +IMPL_LINK_NOARG_TYPED(OPasswordDialog, OKHdl_Impl, Button*, void) { if( m_pEDPassword->GetText() == m_pEDPasswordRepeat->GetText() ) EndDialog( RET_OK ); @@ -108,7 +108,6 @@ IMPL_LINK_NOARG(OPasswordDialog, OKHdl_Impl) m_pEDPasswordRepeat->SetText( OUString() ); m_pEDPassword->GrabFocus(); } - return 0; } IMPL_LINK( OPasswordDialog, ModifiedHdl, Edit *, pEdit ) @@ -207,7 +206,7 @@ VclPtr<SfxTabPage> OUserAdmin::Create( vcl::Window* pParent, const SfxItemSet* _ return VclPtr<OUserAdmin>::Create( pParent, *_rAttrSet ); } -IMPL_LINK( OUserAdmin, UserHdl, PushButton *, pButton ) +IMPL_LINK_TYPED( OUserAdmin, UserHdl, Button *, pButton, void ) { try { @@ -270,14 +269,10 @@ IMPL_LINK( OUserAdmin, UserHdl, PushButton *, pButton ) catch(const SQLException& e) { ::dbaui::showError(::dbtools::SQLExceptionInfo(e), this, m_xORB); - return 0; } catch(Exception& ) { - return 0; } - - return 0; } IMPL_LINK( OUserAdmin, ListDblClickHdl, ListBox *, /*pListBox*/ ) |