summaryrefslogtreecommitdiff
path: root/basic
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 /basic
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 'basic')
-rw-r--r--basic/inc/basic/sbxbase.hxx2
-rw-r--r--basic/source/inc/propacc.hxx2
-rw-r--r--basic/source/inc/symtbl.hxx2
-rw-r--r--basic/source/uno/sbservices.cxx4
4 files changed, 5 insertions, 5 deletions
diff --git a/basic/inc/basic/sbxbase.hxx b/basic/inc/basic/sbxbase.hxx
index 3dcbfd9775ae..55341fa56cf4 100644
--- a/basic/inc/basic/sbxbase.hxx
+++ b/basic/inc/basic/sbxbase.hxx
@@ -38,7 +38,7 @@ class SbxFactory;
class SbxVariable;
class SbxBasicFormater;
-SV_DECL_PTRARR_DEL(SbxFacs,SbxFactory*,5,5)
+SV_DECL_PTRARR_DEL(SbxFacs,SbxFactory*,5)
// AppData structure for SBX:
struct SbxAppData
diff --git a/basic/source/inc/propacc.hxx b/basic/source/inc/propacc.hxx
index 0c27c32d27f6..d79c68808a08 100644
--- a/basic/source/inc/propacc.hxx
+++ b/basic/source/inc/propacc.hxx
@@ -42,7 +42,7 @@
#define NS_UNO ::com::sun::star::uno
typedef NS_BEANS::PropertyValue* SbPropertyValuePtr;
-SV_DECL_PTRARR( SbPropertyValueArr_Impl, SbPropertyValuePtr, 4, 4 )
+SV_DECL_PTRARR( SbPropertyValueArr_Impl, SbPropertyValuePtr, 4 )
typedef ::cppu::WeakImplHelper2< NS_BEANS::XPropertySet,
NS_BEANS::XPropertyAccess > SbPropertyValuesHelper;
diff --git a/basic/source/inc/symtbl.hxx b/basic/source/inc/symtbl.hxx
index 310a238a7656..b484c826b30e 100644
--- a/basic/source/inc/symtbl.hxx
+++ b/basic/source/inc/symtbl.hxx
@@ -57,7 +57,7 @@ public:
};
-SV_DECL_PTRARR_DEL(SbiSymbols,SbiSymDef*,5,5)
+SV_DECL_PTRARR_DEL(SbiSymbols,SbiSymDef*,5)
class SbiSymPool {
friend class SbiSymDef;
diff --git a/basic/source/uno/sbservices.cxx b/basic/source/uno/sbservices.cxx
index 66dc5f577914..6b22e1868301 100644
--- a/basic/source/uno/sbservices.cxx
+++ b/basic/source/uno/sbservices.cxx
@@ -59,10 +59,10 @@ namespace basic
//........................................................................
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL sb_component_getFactory(
- const sal_Char* pImplementationName, void* pServiceManager, void* pRegistryKey )
+ const sal_Char* pImplementationName, void*, void* )
{
::basic::initializeModule();
- return ::basic::BasicModule::getInstance().getComponentFactory( pImplementationName, pServiceManager, pRegistryKey );
+ return ::basic::BasicModule::getInstance().getComponentFactory( pImplementationName );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */