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 /sw/source/ui/fldui/fldfunc.cxx | |
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 'sw/source/ui/fldui/fldfunc.cxx')
-rw-r--r-- | sw/source/ui/fldui/fldfunc.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/ui/fldui/fldfunc.cxx b/sw/source/ui/fldui/fldfunc.cxx index a8fab0674490..03572c2cad30 100644 --- a/sw/source/ui/fldui/fldfunc.cxx +++ b/sw/source/ui/fldui/fldfunc.cxx @@ -189,7 +189,7 @@ void SwFldFuncPage::Reset(const SfxItemSet& ) } } -IMPL_LINK( SwFldFuncPage, TypeHdl, ListBox *, EMPTYARG ) +IMPL_LINK_NOARG(SwFldFuncPage, TypeHdl) { // save old ListBoxPos const sal_uInt16 nOld = GetTypeSel(); @@ -410,7 +410,7 @@ IMPL_LINK( SwFldFuncPage, TypeHdl, ListBox *, EMPTYARG ) return 0; } -IMPL_LINK( SwFldFuncPage, SelectHdl, ListBox *, EMPTYARG ) +IMPL_LINK_NOARG(SwFldFuncPage, SelectHdl) { sal_uInt16 nTypeId = (sal_uInt16)(sal_uLong)aTypeLB.GetEntryData(GetTypeSel()); @@ -420,7 +420,7 @@ IMPL_LINK( SwFldFuncPage, SelectHdl, ListBox *, EMPTYARG ) return 0; } -IMPL_LINK( SwFldFuncPage, InsertMacroHdl, ListBox *, EMPTYARG ) +IMPL_LINK_NOARG(SwFldFuncPage, InsertMacroHdl) { SelectHdl(); InsertHdl(); @@ -475,7 +475,7 @@ IMPL_LINK( SwFldFuncPage, ListModifyHdl, Control*, pControl) return 0; } -IMPL_LINK( SwFldFuncPage, ListEnableHdl, void*, EMPTYARG) +IMPL_LINK_NOARG(SwFldFuncPage, ListEnableHdl) { //enable "Add" button when text is in the Edit that's not already member of the box aListAddPB.Enable(aListItemED.GetText().Len() && @@ -673,7 +673,7 @@ void SwFldFuncPage::FillUserData() SetUserData(sData); } -IMPL_LINK( SwFldFuncPage, ModifyHdl, Edit *, EMPTYARG ) +IMPL_LINK_NOARG(SwFldFuncPage, ModifyHdl) { String aName(aNameED.GetText()); const sal_uInt16 nLen = aName.Len(); |