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 /basic/source/runtime/inputbox.cxx | |
parent | add CVE-2015-0065 testcase (diff) | |
download | core-167bc621ef825ed5b961502fe9324a675ee34e42.tar.gz core-167bc621ef825ed5b961502fe9324a675ee34e42.zip |
Convert vcl Button Link<> click handler to typed Link<Button*,void>
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
Diffstat (limited to 'basic/source/runtime/inputbox.cxx')
-rw-r--r-- | basic/source/runtime/inputbox.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/basic/source/runtime/inputbox.cxx b/basic/source/runtime/inputbox.cxx index 6f62e49e97f4..b925c6cd4b8f 100644 --- a/basic/source/runtime/inputbox.cxx +++ b/basic/source/runtime/inputbox.cxx @@ -40,8 +40,8 @@ class SvRTLInputBox : public ModalDialog void InitButtons( const Size& rDlgSize ); void PositionEdit( const Size& rDlgSize ); void PositionPrompt( const OUString& rPrompt, const Size& rDlgSize ); - DECL_LINK( OkHdl, Button * ); - DECL_LINK( CancelHdl, Button * ); + DECL_LINK_TYPED( OkHdl, Button *, void ); + DECL_LINK_TYPED( CancelHdl, Button *, void ); public: SvRTLInputBox( vcl::Window* pParent, const OUString& rPrompt, const OUString& rTitle, @@ -129,22 +129,16 @@ void SvRTLInputBox::PositionPrompt(const OUString& rPrompt,const Size& rDlgSize) } -IMPL_LINK( SvRTLInputBox, OkHdl, Button *, pButton ) +IMPL_LINK_NOARG_TYPED( SvRTLInputBox, OkHdl, Button *, void ) { - (void)pButton; - aText = aEdit->GetText(); EndDialog( 1 ); - return 0; } -IMPL_LINK( SvRTLInputBox, CancelHdl, Button *, pButton ) +IMPL_LINK_NOARG_TYPED( SvRTLInputBox, CancelHdl, Button *, void ) { - (void)pButton; - aText.clear(); EndDialog(); - return 0; } |