diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-03-01 18:00:32 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-03-01 18:00:32 +0100 |
commit | bd205223ec029a875c662474bb6d423d3cdd1994 (patch) | |
tree | 6531a292edb0d2a13103a4c55cbd10e7137b8a58 /cui/source/factory | |
parent | 32781c2d268ed94eb46318a0398385baf31368c4 (diff) |
New IMPL_LINK_NOARG to work around SAL_UNUSED_PARAMETER problem
...see ebe26f72e90337da2d14f3029de148904e3e30b6 "WaE: 'unused' attribute ignored when parsing type"
for the problem.
Diffstat (limited to 'cui/source/factory')
-rw-r--r-- | cui/source/factory/dlgfact.cxx | 8 | ||||
-rw-r--r-- | cui/source/factory/dlgfact.hxx | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/cui/source/factory/dlgfact.cxx b/cui/source/factory/dlgfact.cxx index 582542172dbd..f4c570b33482 100644 --- a/cui/source/factory/dlgfact.cxx +++ b/cui/source/factory/dlgfact.cxx @@ -733,7 +733,7 @@ void AbstractSvxNameDialog_Impl::SetText( const XubString& rStr ) { pDlg->SetText( rStr ); } -IMPL_LINK( AbstractSvxNameDialog_Impl, CheckNameHdl, Window*, EMPTYARG ) +IMPL_LINK_NOARG(AbstractSvxNameDialog_Impl, CheckNameHdl) { if( aCheckNameHdl.IsSet() ) return aCheckNameHdl.Call(this); @@ -759,7 +759,7 @@ void AbstractSvxObjectNameDialog_Impl::SetCheckNameHdl(const Link& rLink, bool b } } -IMPL_LINK(AbstractSvxObjectNameDialog_Impl, CheckNameHdl, Window*, EMPTYARG) +IMPL_LINK_NOARG(AbstractSvxObjectNameDialog_Impl, CheckNameHdl) { if(aCheckNameHdl.IsSet()) { @@ -959,13 +959,13 @@ void AbstractSvxPostItDialog_Impl::SetPrevHdl( const Link& rLink ) else pDlg->SetPrevHdl( Link() ); } -IMPL_LINK( AbstractSvxPostItDialog_Impl, NextHdl, Window*, EMPTYARG ) +IMPL_LINK_NOARG(AbstractSvxPostItDialog_Impl, NextHdl) { if( aNextHdl.IsSet() ) aNextHdl.Call(this); return 0; } -IMPL_LINK( AbstractSvxPostItDialog_Impl, PrevHdl, Window*, EMPTYARG ) +IMPL_LINK_NOARG(AbstractSvxPostItDialog_Impl, PrevHdl) { if( aPrevHdl.IsSet() ) aPrevHdl.Call(this); diff --git a/cui/source/factory/dlgfact.hxx b/cui/source/factory/dlgfact.hxx index a5a54335a4ea..0f25c25992a0 100644 --- a/cui/source/factory/dlgfact.hxx +++ b/cui/source/factory/dlgfact.hxx @@ -402,7 +402,7 @@ class AbstractSvxNameDialog_Impl :public AbstractSvxNameDialog virtual void SetText( const XubString& rStr ) ; private: Link aCheckNameHdl; - DECL_LINK( CheckNameHdl, Window*); + DECL_LINK(CheckNameHdl, void *); }; //for SvxNameDialog end @@ -421,7 +421,7 @@ class AbstractSvxObjectNameDialog_Impl :public AbstractSvxObjectNameDialog private: Link aCheckNameHdl; - DECL_LINK(CheckNameHdl, Window*); + DECL_LINK(CheckNameHdl, void *); }; class AbstractSvxObjectTitleDescDialog_Impl :public AbstractSvxObjectTitleDescDialog @@ -565,8 +565,8 @@ class AbstractSvxPostItDialog_Impl :public AbstractSvxPostItDialog private: Link aNextHdl; Link aPrevHdl; - DECL_LINK( NextHdl, Window*); - DECL_LINK( PrevHdl, Window*); + DECL_LINK(NextHdl, void *); + DECL_LINK(PrevHdl, void *); }; //add for SvxPostItDialog end |