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/iosys.cxx | |
parent | 46a27805fb707544a844a961a3743b8b992282f0 (diff) |
Convert vcl Button Link<> click handler to typed Link<Button*,void>
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
Diffstat (limited to 'basic/source/runtime/iosys.cxx')
-rw-r--r-- | basic/source/runtime/iosys.cxx | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/basic/source/runtime/iosys.cxx b/basic/source/runtime/iosys.cxx index c069c6f92c51..7be2228bba72 100644 --- a/basic/source/runtime/iosys.cxx +++ b/basic/source/runtime/iosys.cxx @@ -70,8 +70,8 @@ class SbiInputDialog : public ModalDialog { VclPtr<OKButton> aOk; VclPtr<CancelButton> aCancel; OUString aText; - DECL_LINK( Ok, vcl::Window * ); - DECL_LINK( Cancel, vcl::Window * ); + DECL_LINK_TYPED( Ok, Button *, void ); + DECL_LINK_TYPED( Cancel, Button *, void ); public: SbiInputDialog( vcl::Window*, const OUString& ); virtual ~SbiInputDialog() { disposeOnce(); } @@ -115,21 +115,15 @@ void SbiInputDialog::dispose() ModalDialog::dispose(); } -IMPL_LINK( SbiInputDialog, Ok, vcl::Window *, pWindow ) +IMPL_LINK_NOARG_TYPED( SbiInputDialog, Ok, Button *, void ) { - (void)pWindow; - aText = aInput->GetText(); EndDialog( 1 ); - return 0; } -IMPL_LINK( SbiInputDialog, Cancel, vcl::Window *, pWindow ) +IMPL_LINK_NOARG_TYPED( SbiInputDialog, Cancel, Button *, void ) { - (void)pWindow; - EndDialog(); - return 0; } SbiStream::SbiStream() |