diff options
Diffstat (limited to 'sfx2/source/dialog/newstyle.cxx')
-rw-r--r-- | sfx2/source/dialog/newstyle.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sfx2/source/dialog/newstyle.cxx b/sfx2/source/dialog/newstyle.cxx index 57396e79b00f..4b0408fe3ddc 100644 --- a/sfx2/source/dialog/newstyle.cxx +++ b/sfx2/source/dialog/newstyle.cxx @@ -28,9 +28,12 @@ // PRIVATE METHODES ------------------------------------------------------ -IMPL_LINK( SfxNewStyleDlg, OKHdl, Control *, pControl ) +IMPL_LINK_NOARG_TYPED( SfxNewStyleDlg, OKClickHdl, Button*, void ) +{ + OKHdl(NULL); +} +IMPL_LINK( SfxNewStyleDlg, OKHdl, Control *, /*pControl*/ ) { - (void)pControl; //unused const OUString aName( m_pColBox->GetText() ); SfxStyleSheetBase* pStyle = rPool.Find( aName, rPool.GetSearchFamily() ); if ( pStyle ) @@ -67,7 +70,7 @@ SfxNewStyleDlg::SfxNewStyleDlg( vcl::Window* pParent, SfxStyleSheetBasePool& rIn m_pColBox->set_height_request(m_pColBox->GetTextHeight() * 10); get(m_pOKBtn, "ok"); - m_pOKBtn->SetClickHdl(LINK(this, SfxNewStyleDlg, OKHdl)); + m_pOKBtn->SetClickHdl(LINK(this, SfxNewStyleDlg, OKClickHdl)); m_pColBox->SetModifyHdl(LINK(this, SfxNewStyleDlg, ModifyHdl)); m_pColBox->SetDoubleClickHdl(LINK(this, SfxNewStyleDlg, OKHdl)); |