From 6df22f0ec513415cf6c920c1f8063dabe7303c06 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 16 May 2017 12:36:22 +0200 Subject: loplugin:checkunusedparams various Change-Id: I5d1cc807134230d86e0226a12fada204004312d3 Reviewed-on: https://gerrit.libreoffice.org/37675 Tested-by: Jenkins Reviewed-by: Noel Grandin --- lingucomponent/source/hyphenator/hyphen/hreg.cxx | 5 ++--- lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx | 2 +- lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx | 3 +-- lingucomponent/source/spellcheck/spell/sreg.cxx | 5 ++--- lingucomponent/source/spellcheck/spell/sspellimp.cxx | 2 +- lingucomponent/source/spellcheck/spell/sspellimp.hxx | 3 +-- lingucomponent/source/thesaurus/libnth/nthesimp.cxx | 2 +- lingucomponent/source/thesaurus/libnth/nthesimp.hxx | 3 +-- lingucomponent/source/thesaurus/libnth/ntreg.cxx | 5 ++--- 9 files changed, 12 insertions(+), 18 deletions(-) (limited to 'lingucomponent') diff --git a/lingucomponent/source/hyphenator/hyphen/hreg.cxx b/lingucomponent/source/hyphenator/hyphen/hreg.cxx index 7eb861741eba..853d904d5df8 100644 --- a/lingucomponent/source/hyphenator/hyphen/hreg.cxx +++ b/lingucomponent/source/hyphenator/hyphen/hreg.cxx @@ -32,12 +32,11 @@ extern "C" { SAL_DLLPUBLIC_EXPORT void * SAL_CALL hyphen_component_getFactory( - const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) + const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ ) { void * pRet = Hyphenator_getFactory( pImplName, - static_cast< XMultiServiceFactory * >( pServiceManager ), - pRegistryKey ); + static_cast< XMultiServiceFactory * >( pServiceManager ) ); return pRet; } diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx index 3378ba2716d6..430a4628f7f8 100644 --- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx +++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.cxx @@ -872,7 +872,7 @@ Sequence< OUString > Hyphenator::getSupportedServiceNames_Static() } void * SAL_CALL Hyphenator_getFactory( const sal_Char * pImplName, - XMultiServiceFactory * pServiceManager, void * ) + XMultiServiceFactory * pServiceManager ) { void * pRet = nullptr; if ( Hyphenator::getImplementationName_Static().equalsAscii( pImplName ) ) diff --git a/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx b/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx index 94f6db85011d..128f74324c62 100644 --- a/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx +++ b/lingucomponent/source/hyphenator/hyphen/hyphenimp.hxx @@ -131,8 +131,7 @@ inline OUString Hyphenator::getImplementationName_Static() throw() } void * SAL_CALL Hyphenator_getFactory( - char const * pImplName, css::lang::XMultiServiceFactory * pServiceManager, - void *); + char const * pImplName, css::lang::XMultiServiceFactory * pServiceManager); #endif diff --git a/lingucomponent/source/spellcheck/spell/sreg.cxx b/lingucomponent/source/spellcheck/spell/sreg.cxx index 5a783e66205b..2aa96896d360 100644 --- a/lingucomponent/source/spellcheck/spell/sreg.cxx +++ b/lingucomponent/source/spellcheck/spell/sreg.cxx @@ -32,13 +32,12 @@ extern "C" { SAL_DLLPUBLIC_EXPORT void * SAL_CALL spell_component_getFactory( - const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) + const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ ) { void * pRet = nullptr; pRet = SpellChecker_getFactory( pImplName, - static_cast< XMultiServiceFactory * >( pServiceManager ), - pRegistryKey ); + static_cast< XMultiServiceFactory * >( pServiceManager ) ); return pRet; } diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx index 8dcd123dbd00..301bd07e0bcd 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx @@ -673,7 +673,7 @@ Sequence< OUString > SpellChecker::getSupportedServiceNames_Static() } void * SAL_CALL SpellChecker_getFactory( const sal_Char * pImplName, - XMultiServiceFactory * pServiceManager, void * ) + XMultiServiceFactory * pServiceManager ) { void * pRet = nullptr; if ( SpellChecker::getImplementationName_Static().equalsAscii( pImplName ) ) diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.hxx b/lingucomponent/source/spellcheck/spell/sspellimp.hxx index c7e8cbf7a6a6..b8f5dc18f69b 100644 --- a/lingucomponent/source/spellcheck/spell/sspellimp.hxx +++ b/lingucomponent/source/spellcheck/spell/sspellimp.hxx @@ -119,8 +119,7 @@ inline OUString SpellChecker::getImplementationName_Static() throw() } void * SAL_CALL SpellChecker_getFactory( - char const * pImplName, css::lang::XMultiServiceFactory * pServiceManager, - void *); + char const * pImplName, css::lang::XMultiServiceFactory * pServiceManager); #endif diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx index 0a5672a22a69..b8da4808ebce 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx @@ -634,7 +634,7 @@ Sequence< OUString > Thesaurus::getSupportedServiceNames_Static() } void * SAL_CALL Thesaurus_getFactory( const sal_Char * pImplName, - XMultiServiceFactory * pServiceManager, void * ) + XMultiServiceFactory * pServiceManager ) { void * pRet = nullptr; if ( Thesaurus::getImplementationName_Static().equalsAscii( pImplName ) ) diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.hxx b/lingucomponent/source/thesaurus/libnth/nthesimp.hxx index 97a03c039ad9..f2a1b0bbedcb 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.hxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.hxx @@ -134,8 +134,7 @@ inline OUString Thesaurus::getImplementationName_Static() throw() } void * SAL_CALL Thesaurus_getFactory( - char const * pImplName, css::lang::XMultiServiceFactory * pServiceManager, - void *); + char const * pImplName, css::lang::XMultiServiceFactory * pServiceManager); #endif diff --git a/lingucomponent/source/thesaurus/libnth/ntreg.cxx b/lingucomponent/source/thesaurus/libnth/ntreg.cxx index 11f03388621d..f83ecb28b972 100644 --- a/lingucomponent/source/thesaurus/libnth/ntreg.cxx +++ b/lingucomponent/source/thesaurus/libnth/ntreg.cxx @@ -32,12 +32,11 @@ extern "C" { SAL_DLLPUBLIC_EXPORT void * SAL_CALL lnth_component_getFactory( - const sal_Char * pImplName, void * pServiceManager, void * pRegistryKey ) + const sal_Char * pImplName, void * pServiceManager, void * /*pRegistryKey*/ ) { void * pRet = Thesaurus_getFactory( pImplName, - static_cast< XMultiServiceFactory * >( pServiceManager ), - pRegistryKey ); + static_cast< XMultiServiceFactory * >( pServiceManager ) ); return pRet; } -- cgit