summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2012-01-21 15:21:16 +0100
committerStephan Bergmann <sbergman@redhat.com>2012-01-21 15:21:16 +0100
commit7c704c78d3c652504c064b4ac7af55a2c1ee49bb (patch)
tree623358cf25839219ef4fd90eea4f3eaa55389a1f /cui
parent0d5167915b47df7c3e450614ea50d845ba959df3 (diff)
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.
Diffstat (limited to 'cui')
-rw-r--r--cui/source/inc/cfgutil.hxx2
-rw-r--r--cui/source/inc/numpages.hxx2
-rw-r--r--cui/source/inc/selector.hxx2
-rw-r--r--cui/source/options/optinet2.hxx2
-rw-r--r--cui/source/tabpages/autocdlg.cxx2
5 files changed, 5 insertions, 5 deletions
diff --git a/cui/source/inc/cfgutil.hxx b/cui/source/inc/cfgutil.hxx
index c4fe5c941753..94c764bd4f4d 100644
--- a/cui/source/inc/cfgutil.hxx
+++ b/cui/source/inc/cfgutil.hxx
@@ -116,7 +116,7 @@ struct CuiMacroInfo
};
typedef SfxGroupInfo_Impl* SfxGroupInfoPtr;
-SV_DECL_PTRARR_DEL(SfxGroupInfoArr_Impl, SfxGroupInfoPtr, 5, 5)
+SV_DECL_PTRARR_DEL(SfxGroupInfoArr_Impl, SfxGroupInfoPtr, 5)
class SfxConfigFunctionListBox_Impl : public SvTreeListBox
{
diff --git a/cui/source/inc/numpages.hxx b/cui/source/inc/numpages.hxx
index bd61da269179..c1ee078254e8 100644
--- a/cui/source/inc/numpages.hxx
+++ b/cui/source/inc/numpages.hxx
@@ -69,7 +69,7 @@ struct SvxNumSettings_Impl
};
typedef SvxNumSettings_Impl* SvxNumSettings_ImplPtr;
-SV_DECL_PTRARR_DEL(SvxNumSettingsArr_Impl,SvxNumSettings_ImplPtr,8,4)
+SV_DECL_PTRARR_DEL(SvxNumSettingsArr_Impl,SvxNumSettings_ImplPtr,8)
//------------------------------------------------
diff --git a/cui/source/inc/selector.hxx b/cui/source/inc/selector.hxx
index ed6cad8e9ba1..51170c12ac7d 100644
--- a/cui/source/inc/selector.hxx
+++ b/cui/source/inc/selector.hxx
@@ -88,7 +88,7 @@ struct SvxGroupInfo_Impl
};
typedef SvxGroupInfo_Impl* SvxGroupInfoPtr;
-SV_DECL_PTRARR_DEL(SvxGroupInfoArr_Impl, SvxGroupInfoPtr, 5, 5)
+SV_DECL_PTRARR_DEL(SvxGroupInfoArr_Impl, SvxGroupInfoPtr, 5)
class ImageProvider
{
diff --git a/cui/source/options/optinet2.hxx b/cui/source/options/optinet2.hxx
index 1978a4dcb5e9..a7eefd6e72a1 100644
--- a/cui/source/options/optinet2.hxx
+++ b/cui/source/options/optinet2.hxx
@@ -76,7 +76,7 @@ public:
};
typedef SfxFilter* SfxFilterPtr;
-SV_DECL_PTRARR( SfxFilterPtrArr, SfxFilterPtr, 0, 4 )
+SV_DECL_PTRARR( SfxFilterPtrArr, SfxFilterPtr, 0 )
// class SvxProxyTabPage -------------------------------------------------
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index a0ce04ba6d2e..93a370f8c334 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -932,7 +932,7 @@ struct DoubleString
void* pUserData; // CheckBox -> form. Text Bool -> Selektionstext
};
typedef DoubleString* DoubleStringPtr;
-SV_DECL_PTRARR_DEL(DoubleStringArray, DoubleStringPtr, 4, 4)
+SV_DECL_PTRARR_DEL(DoubleStringArray, DoubleStringPtr, 4)
SV_IMPL_PTRARR(DoubleStringArray, DoubleStringPtr);
void lcl_ClearTable(DoubleStringTable& rTable)