summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-15 08:13:49 +0200
committerNoel Grandin <noelgrandin@gmail.com>2015-10-16 09:11:29 +0000
commit6f1313b3d44ea54e9a331e0fc00871081fa662fe (patch)
treefa6d9b6da04daedcb63ea2a0bc8c414288ed8bc6 /vcl/generic
parent14bf708ef586b15dffed66ffaf524baf4d8fcbfa (diff)
convert Link<> to typed
Change-Id: Icbba339dac0be31e30dff021bba06a219f8aecd6 Reviewed-on: https://gerrit.libreoffice.org/19405 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/print/prtsetup.cxx5
-rw-r--r--vcl/generic/print/prtsetup.hxx2
2 files changed, 3 insertions, 4 deletions
diff --git a/vcl/generic/print/prtsetup.cxx b/vcl/generic/print/prtsetup.cxx
index 6ba93da656a5..07ca53878bff 100644
--- a/vcl/generic/print/prtsetup.cxx
+++ b/vcl/generic/print/prtsetup.cxx
@@ -441,13 +441,12 @@ sal_uLong RTSDevicePage::getPDFDevice()
return -1; //explicitly PS
}
-IMPL_LINK(RTSDevicePage, ModifyHdl, Edit*, pEdit)
+IMPL_LINK_TYPED(RTSDevicePage, ModifyHdl, Edit&, rEdit, void)
{
if (m_pCustomValue)
{
- m_pCustomValue->m_aCustomOption = pEdit->GetText();
+ m_pCustomValue->m_aCustomOption = rEdit.GetText();
}
- return 0;
}
IMPL_LINK_TYPED( RTSDevicePage, SelectHdl, ListBox&, rBox, void )
diff --git a/vcl/generic/print/prtsetup.hxx b/vcl/generic/print/prtsetup.hxx
index 78e4a9e8485f..33499423bc72 100644
--- a/vcl/generic/print/prtsetup.hxx
+++ b/vcl/generic/print/prtsetup.hxx
@@ -116,7 +116,7 @@ class RTSDevicePage : public TabPage
void FillValueBox( const ::psp::PPDKey* );
DECL_LINK_TYPED( SelectHdl, ListBox&, void );
- DECL_LINK( ModifyHdl, Edit* );
+ DECL_LINK_TYPED( ModifyHdl, Edit&, void );
public:
explicit RTSDevicePage( RTSDialog* );
virtual ~RTSDevicePage();