summaryrefslogtreecommitdiffstats
path: root/svtools
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 /svtools
parentFix Possible inefficient checking for 'aChrSetArr' emptiness (diff)
downloadcore-7c704c78d3c652504c064b4ac7af55a2c1ee49bb.tar.gz
core-7c704c78d3c652504c064b4ac7af55a2c1ee49bb.zip
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 'svtools')
-rw-r--r--svtools/inc/svtools/svxbox.hxx2
-rw-r--r--svtools/source/edit/textdat2.hxx6
-rw-r--r--svtools/source/edit/textdoc.hxx2
-rw-r--r--svtools/source/edit/texteng.cxx4
-rw-r--r--svtools/source/misc/itemdel.cxx2
5 files changed, 8 insertions, 8 deletions
diff --git a/svtools/inc/svtools/svxbox.hxx b/svtools/inc/svtools/svxbox.hxx
index 0759e212bb9f..81d8ff90e5db 100644
--- a/svtools/inc/svtools/svxbox.hxx
+++ b/svtools/inc/svtools/svxbox.hxx
@@ -41,7 +41,7 @@
class SvxBoxEntry;
class SvxListBase;
-SV_DECL_PTRARR( SvxEntryLst, SvxBoxEntry*, 10, 10 )
+SV_DECL_PTRARR( SvxEntryLst, SvxBoxEntry*, 10 )
// class SvxBoxEntry -----------------------------------------------------
diff --git a/svtools/source/edit/textdat2.hxx b/svtools/source/edit/textdat2.hxx
index 579810ce37ab..945fd2336ca2 100644
--- a/svtools/source/edit/textdat2.hxx
+++ b/svtools/source/edit/textdat2.hxx
@@ -90,7 +90,7 @@ public:
typedef TETextPortion* TextPortionPtr;
-SV_DECL_PTRARR( TextPortionArray, TextPortionPtr, 0, 8 )
+SV_DECL_PTRARR( TextPortionArray, TextPortionPtr, 0 )
class TETextPortionList : public TextPortionArray
{
@@ -117,7 +117,7 @@ struct TEWritingDirectionInfo
}
};
-SV_DECL_VARARR( TEWritingDirectionInfos, TEWritingDirectionInfo, 0, 4 )
+SV_DECL_VARARR( TEWritingDirectionInfos, TEWritingDirectionInfo, 0 )
class TextLine
{
@@ -178,7 +178,7 @@ public:
};
typedef TextLine* TextLinePtr;
- SV_DECL_PTRARR_DEL( TextLines, TextLinePtr, 1, 4 )
+ SV_DECL_PTRARR_DEL( TextLines, TextLinePtr, 1 )
inline sal_Bool TextLine::operator == ( const TextLine& rLine ) const
{
diff --git a/svtools/source/edit/textdoc.hxx b/svtools/source/edit/textdoc.hxx
index f3538908342a..eb738d1880cb 100644
--- a/svtools/source/edit/textdoc.hxx
+++ b/svtools/source/edit/textdoc.hxx
@@ -36,7 +36,7 @@
#include <tools/string.hxx>
typedef TextCharAttrib* TextCharAttribPtr;
-SV_DECL_PTRARR_DEL( TextCharAttribs, TextCharAttribPtr, 0, 4 )
+SV_DECL_PTRARR_DEL( TextCharAttribs, TextCharAttribPtr, 0 )
class TextCharAttribList : private TextCharAttribs
{
diff --git a/svtools/source/edit/texteng.cxx b/svtools/source/edit/texteng.cxx
index a9f886592142..5a6f7b81af57 100644
--- a/svtools/source/edit/texteng.cxx
+++ b/svtools/source/edit/texteng.cxx
@@ -69,10 +69,10 @@ using namespace ::com::sun::star::uno;
using namespace ::rtl;
typedef TextView* TextViewPtr;
-SV_DECL_PTRARR( TextViews, TextViewPtr, 0, 1 )
+SV_DECL_PTRARR( TextViews, TextViewPtr, 0 )
// SV_IMPL_PTRARR( TextViews, TextViewPtr );
-SV_DECL_VARARR_SORT( TESortedPositions, sal_uLong, 16, 8 )
+SV_DECL_VARARR_SORT( TESortedPositions, sal_uLong, 16 )
SV_IMPL_VARARR_SORT( TESortedPositions, sal_uLong )
#define RESDIFF 10
diff --git a/svtools/source/misc/itemdel.cxx b/svtools/source/misc/itemdel.cxx
index 7b2df1b5191d..4ff4af2a6bfb 100644
--- a/svtools/source/misc/itemdel.cxx
+++ b/svtools/source/misc/itemdel.cxx
@@ -56,7 +56,7 @@ public:
~SfxItemDesruptor_Impl();
};
-SV_DECL_PTRARR( SfxItemDesruptorList_Impl, SfxItemDesruptor_Impl*, 4, 4 )
+SV_DECL_PTRARR( SfxItemDesruptorList_Impl, SfxItemDesruptor_Impl*, 4 )
// ------------------------------------------------------------------------
SfxItemDesruptor_Impl::SfxItemDesruptor_Impl( SfxPoolItem *pItemToDesrupt ):