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 /svx/source/unodialogs | |
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 'svx/source/unodialogs')
3 files changed, 12 insertions, 12 deletions
diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx index 6100860d3926..3d347f319d78 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.cxx @@ -631,7 +631,7 @@ void ChineseDictionaryDialog::setDirectionAndTextConversionOptions( bool bDirect updateAfterDirectionChange(); } -IMPL_LINK( ChineseDictionaryDialog, DirectionHdl, void*, EMPTYARG ) +IMPL_LINK_NOARG(ChineseDictionaryDialog, DirectionHdl) { updateAfterDirectionChange(); return 0; @@ -657,12 +657,12 @@ void ChineseDictionaryDialog::updateAfterDirectionChange() updateButtons(); } -IMPL_LINK( ChineseDictionaryDialog, EditFieldsHdl, Control*, EMPTYARG ) +IMPL_LINK_NOARG(ChineseDictionaryDialog, EditFieldsHdl) { updateButtons(); return 0; } -IMPL_LINK( ChineseDictionaryDialog, MappingSelectHdl, void*, EMPTYARG ) +IMPL_LINK_NOARG(ChineseDictionaryDialog, MappingSelectHdl) { DictionaryEntry* pE = getActiveDictionary().getFirstSelectedEntry(); if(pE) @@ -749,7 +749,7 @@ void ChineseDictionaryDialog::updateButtons() m_aPB_Modify.Enable( bModify ); } -IMPL_LINK( ChineseDictionaryDialog, AddHdl, void*, EMPTYARG ) +IMPL_LINK_NOARG(ChineseDictionaryDialog, AddHdl) { if( !isEditFieldsHaveContent() ) return 0; @@ -767,7 +767,7 @@ IMPL_LINK( ChineseDictionaryDialog, AddHdl, void*, EMPTYARG ) updateButtons(); return 0; } -IMPL_LINK( ChineseDictionaryDialog, ModifyHdl, void*, EMPTYARG ) +IMPL_LINK_NOARG(ChineseDictionaryDialog, ModifyHdl) { rtl::OUString aTerm( m_aED_Term.GetText() ); rtl::OUString aMapping( m_aED_Mapping.GetText() ); @@ -800,7 +800,7 @@ IMPL_LINK( ChineseDictionaryDialog, ModifyHdl, void*, EMPTYARG ) return 0; } -IMPL_LINK( ChineseDictionaryDialog, DeleteHdl, void*, EMPTYARG ) +IMPL_LINK_NOARG(ChineseDictionaryDialog, DeleteHdl) { DictionaryList& rActive = getActiveDictionary(); DictionaryList& rReverse = getReverseDictionary(); @@ -860,7 +860,7 @@ short ChineseDictionaryDialog::Execute() return nRet; } -IMPL_LINK( ChineseDictionaryDialog, HeaderBarClick, void*, EMPTYARG ) +IMPL_LINK_NOARG(ChineseDictionaryDialog, HeaderBarClick) { if(m_pHeaderBar) { diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx index 892d5b793620..19709d89afeb 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx @@ -138,7 +138,7 @@ public: private: DECL_LINK( DirectionHdl, void* ); - DECL_LINK( EditFieldsHdl, Control* ); + DECL_LINK(EditFieldsHdl, void *); DECL_LINK( MappingSelectHdl, void* ); DECL_LINK( AddHdl, void* ); DECL_LINK( ModifyHdl, void* ); diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx index d79a3a34c588..c6949185410a 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.cxx @@ -132,13 +132,13 @@ void ChineseTranslationDialog::impl_UpdateVariantsCheckBox() // m_aCB_Use_Variants.Enable( m_aRB_To_Traditional.IsChecked() ); } -IMPL_LINK( ChineseTranslationDialog, DirectionHdl, void*, EMPTYARG ) +IMPL_LINK_NOARG(ChineseTranslationDialog, DirectionHdl) { impl_UpdateVariantsCheckBox(); return 0; } -IMPL_LINK( ChineseTranslationDialog, CommonTermsHdl, void*, EMPTYARG ) +IMPL_LINK_NOARG(ChineseTranslationDialog, CommonTermsHdl) { // #117820# (search for other occurrences!) // if( m_aCB_Translate_Commonterms.IsChecked() && m_aRB_To_Traditional.IsChecked() ) @@ -146,7 +146,7 @@ IMPL_LINK( ChineseTranslationDialog, CommonTermsHdl, void*, EMPTYARG ) return 0; } -IMPL_LINK( ChineseTranslationDialog, OkHdl, void*, EMPTYARG ) +IMPL_LINK_NOARG(ChineseTranslationDialog, OkHdl) { //save settings to configuration SvtLinguConfig aLngCfg; @@ -162,7 +162,7 @@ IMPL_LINK( ChineseTranslationDialog, OkHdl, void*, EMPTYARG ) return 0; } -IMPL_LINK( ChineseTranslationDialog, DictionaryHdl, void*, EMPTYARG ) +IMPL_LINK_NOARG(ChineseTranslationDialog, DictionaryHdl) { if( !m_pDictionaryDialog ) { |