diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2012-01-21 15:21:16 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2012-01-21 15:21:16 +0100 |
commit | 7c704c78d3c652504c064b4ac7af55a2c1ee49bb (patch) | |
tree | 623358cf25839219ef4fd90eea4f3eaa55389a1f /svtools/source/edit | |
parent | 0d5167915b47df7c3e450614ea50d845ba959df3 (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 'svtools/source/edit')
-rw-r--r-- | svtools/source/edit/textdat2.hxx | 6 | ||||
-rw-r--r-- | svtools/source/edit/textdoc.hxx | 2 | ||||
-rw-r--r-- | svtools/source/edit/texteng.cxx | 4 |
3 files changed, 6 insertions, 6 deletions
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 |