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 /writerperfect | |
parent | 46a27805fb707544a844a961a3743b8b992282f0 (diff) |
Convert vcl Button Link<> click handler to typed Link<Button*,void>
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/inc/WPFTEncodingDialog.hxx | 2 | ||||
-rw-r--r-- | writerperfect/source/common/WPFTEncodingDialog.cxx | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/writerperfect/inc/WPFTEncodingDialog.hxx b/writerperfect/inc/WPFTEncodingDialog.hxx index 2d3a63a302fa..69f409885df4 100644 --- a/writerperfect/inc/WPFTEncodingDialog.hxx +++ b/writerperfect/inc/WPFTEncodingDialog.hxx @@ -43,7 +43,7 @@ private: bool m_userHasCancelled; private: DECL_LINK(DoubleClickHdl, ListBox *); - DECL_LINK(CancelHdl, void *); + DECL_LINK_TYPED(CancelHdl, Button*, void); void dispose() SAL_OVERRIDE; diff --git a/writerperfect/source/common/WPFTEncodingDialog.cxx b/writerperfect/source/common/WPFTEncodingDialog.cxx index 238df4a1c97d..4cd5b75161be 100644 --- a/writerperfect/source/common/WPFTEncodingDialog.cxx +++ b/writerperfect/source/common/WPFTEncodingDialog.cxx @@ -189,11 +189,10 @@ OUString WPFTEncodingDialog::GetEncoding() const return getEncoding(m_pLbCharset); } -IMPL_LINK_NOARG(WPFTEncodingDialog, CancelHdl) +IMPL_LINK_NOARG_TYPED(WPFTEncodingDialog, CancelHdl, Button*, void) { m_userHasCancelled=true; Close(); - return 0; } IMPL_LINK(WPFTEncodingDialog, DoubleClickHdl, ListBox *, pLb) |