From 7c704c78d3c652504c064b4ac7af55a2c1ee49bb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 21 Jan 2012 15:21:16 +0100 Subject: Removed some unused parameters; added SAL_UNUSED_PARAMETER. SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC) is used to annotate legitimately unused parameters, so that static analysis tools can tell legitimately unused parameters from truly unnecessary ones. To that end, some patches for external modules are also added, that are only applied when compiling with GCC and add necessary __attribute__ ((unused)) in headers. --- sfx2/source/dialog/splitwin.cxx | 2 +- sfx2/source/dialog/templdlg.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sfx2/source/dialog') diff --git a/sfx2/source/dialog/splitwin.cxx b/sfx2/source/dialog/splitwin.cxx index 91e6b22323bf..4c40b6734a00 100644 --- a/sfx2/source/dialog/splitwin.cxx +++ b/sfx2/source/dialog/splitwin.cxx @@ -66,7 +66,7 @@ struct SfxDock_Impl }; typedef SfxDock_Impl* SfxDockPtr; -SV_DECL_PTRARR_DEL( SfxDockArr_Impl, SfxDockPtr, 4, 4) +SV_DECL_PTRARR_DEL( SfxDockArr_Impl, SfxDockPtr, 4 ) SV_IMPL_PTRARR( SfxDockArr_Impl, SfxDockPtr); class SfxEmptySplitWin_Impl : public SplitWindow diff --git a/sfx2/source/dialog/templdlg.cxx b/sfx2/source/dialog/templdlg.cxx index 1c51c408b845..a24cb892d859 100644 --- a/sfx2/source/dialog/templdlg.cxx +++ b/sfx2/source/dialog/templdlg.cxx @@ -428,7 +428,7 @@ void SfxTemplateDialogWrapper::SetParagraphFamily() } //========================================================================= -SV_DECL_PTRARR_DEL(ExpandedEntries, StringPtr,16,8) +SV_DECL_PTRARR_DEL(ExpandedEntries, StringPtr,16) SV_IMPL_PTRARR(ExpandedEntries, StringPtr) /* [Description] @@ -647,7 +647,7 @@ struct StyleTree_Impl }; typedef StyleTree_Impl* StyleTree_ImplPtr; -SV_DECL_PTRARR_DEL(StyleTreeArr_Impl, StyleTree_ImplPtr, 16, 8) +SV_DECL_PTRARR_DEL(StyleTreeArr_Impl, StyleTree_ImplPtr, 16) SV_IMPL_PTRARR(StyleTreeArr_Impl, StyleTree_ImplPtr) -- cgit