summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/copydlg.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-08-19 09:11:34 +0200
committerNoel Grandin <noel@peralex.com>2015-08-26 11:15:35 +0200
commit167bc621ef825ed5b961502fe9324a675ee34e42 (patch)
tree523838d8adc14a62f846529ee6eab3343b2fe87b /sd/source/ui/dlg/copydlg.cxx
parent46a27805fb707544a844a961a3743b8b992282f0 (diff)
Convert vcl Button Link<> click handler to typed Link<Button*,void>
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
Diffstat (limited to 'sd/source/ui/dlg/copydlg.cxx')
-rw-r--r--sd/source/ui/dlg/copydlg.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sd/source/ui/dlg/copydlg.cxx b/sd/source/ui/dlg/copydlg.cxx
index b87f58e0908c..86421fde3f0c 100644
--- a/sd/source/ui/dlg/copydlg.cxx
+++ b/sd/source/ui/dlg/copydlg.cxx
@@ -238,7 +238,7 @@ IMPL_LINK_NOARG(CopyDlg, SelectColorHdl)
/**
* sets values of selection
*/
-IMPL_LINK_NOARG(CopyDlg, SetViewData)
+IMPL_LINK_NOARG_TYPED(CopyDlg, SetViewData, Button*, void)
{
Rectangle aRect = mpView->GetAllMarkedRect();
@@ -254,14 +254,12 @@ IMPL_LINK_NOARG(CopyDlg, SetViewData)
Color aColor = static_cast<const XColorItem*>( pPoolItem )->GetColorValue();
m_pLbStartColor->SelectEntry( aColor );
}
-
- return 0;
}
/**
* resets values to default
*/
-IMPL_LINK_NOARG(CopyDlg, SetDefault)
+IMPL_LINK_NOARG_TYPED(CopyDlg, SetDefault, Button*, void)
{
m_pNumFldCopies->SetValue( 1L );
@@ -282,8 +280,6 @@ IMPL_LINK_NOARG(CopyDlg, SetDefault)
m_pLbStartColor->SelectEntry( aColor );
m_pLbEndColor->SelectEntry( aColor );
}
-
- return 0;
}
} // end of namespace sd