Kaydet (Commit) ea0bb58d authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Drop unused comphelper::service_decl::component_getFactoryHelper params

Change-Id: Ia47c0bc3539ddf8f925cd053a2431c742c46d337
üst 83853b9c
...@@ -72,14 +72,10 @@ extern sdecl::ServiceDecl const serviceDecl; ...@@ -72,14 +72,10 @@ extern sdecl::ServiceDecl const serviceDecl;
extern "C" { extern "C" {
SAL_DLLPUBLIC_EXPORT void * SAL_CALL deployment_component_getFactory( SAL_DLLPUBLIC_EXPORT void * SAL_CALL deployment_component_getFactory(
sal_Char const * pImplName, sal_Char const * pImplName, void *, void *)
void * pServiceManager,
void * pRegistryKey )
{ {
return component_getFactoryHelper( return component_getFactoryHelper(
pImplName, pImplName,
static_cast<css::lang::XMultiServiceFactory *>(pServiceManager),
static_cast<css::registry::XRegistryKey *>(pRegistryKey),
dp_registry::backend::configuration::serviceDecl, dp_registry::backend::configuration::serviceDecl,
dp_registry::backend::component::serviceDecl, dp_registry::backend::component::serviceDecl,
dp_registry::backend::help::serviceDecl, dp_registry::backend::help::serviceDecl,
......
...@@ -330,12 +330,10 @@ sdecl::ServiceDecl const updateDecl( ...@@ -330,12 +330,10 @@ sdecl::ServiceDecl const updateDecl(
extern "C" { extern "C" {
SAL_DLLPUBLIC_EXPORT void * SAL_CALL deploymentgui_component_getFactory( SAL_DLLPUBLIC_EXPORT void * SAL_CALL deploymentgui_component_getFactory(
sal_Char const * pImplName, sal_Char const * pImplName, void *, void *)
void * pServiceManager,
void * pRegistryKey )
{ {
return component_getFactoryHelper( return component_getFactoryHelper(
pImplName, static_cast<css::lang::XMultiServiceFactory *>(pServiceManager), static_cast<css::registry::XRegistryKey *>(pRegistryKey), dp_gui::serviceDecl, dp_gui::licenseDecl, dp_gui::updateDecl ); pImplName, dp_gui::serviceDecl, dp_gui::licenseDecl, dp_gui::updateDecl );
} }
} // extern "C" } // extern "C"
......
...@@ -30,11 +30,9 @@ const sdecl::ServiceDecl OpenOfficeResourceLoaderDecl( ...@@ -30,11 +30,9 @@ const sdecl::ServiceDecl OpenOfficeResourceLoaderDecl(
"com.sun.star.resource.OfficeResourceLoader"); "com.sun.star.resource.OfficeResourceLoader");
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL res_component_getFactory( extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL res_component_getFactory(
sal_Char const* pImplName, sal_Char const* pImplName, void*, void*)
::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
::com::sun::star::registry::XRegistryKey* pRegistryKey )
{ {
return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, return component_getFactoryHelper( pImplName,
ResourceIndexAccessDecl, OpenOfficeResourceLoaderDecl ); ResourceIndexAccessDecl, OpenOfficeResourceLoaderDecl );
} }
......
...@@ -38,17 +38,15 @@ const comphelper::service_decl::ServiceDecl graphicExportDialog( ...@@ -38,17 +38,15 @@ const comphelper::service_decl::ServiceDecl graphicExportDialog(
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL graphicfilter_component_getFactory( extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL graphicfilter_component_getFactory(
sal_Char const* pImplementationName, sal_Char const* pImplementationName, void*, void*)
::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
::com::sun::star::registry::XRegistryKey* pRegistryKey )
{ {
if ( rtl_str_compare (pImplementationName, GRAPHIC_EXPORT_FILTER_SERVICE) == 0 ) if ( rtl_str_compare (pImplementationName, GRAPHIC_EXPORT_FILTER_SERVICE) == 0 )
{ {
return component_getFactoryHelper( pImplementationName, pServiceManager, pRegistryKey, graphicExportFilter ); return component_getFactoryHelper( pImplementationName, graphicExportFilter );
} }
else if ( rtl_str_compare (pImplementationName, GRAPHIC_EXPORT_DIALOG_SERVICE) == 0 ) else if ( rtl_str_compare (pImplementationName, GRAPHIC_EXPORT_DIALOG_SERVICE) == 0 )
{ {
return component_getFactoryHelper( pImplementationName, pServiceManager, pRegistryKey, graphicExportDialog ); return component_getFactoryHelper( pImplementationName, graphicExportDialog );
} }
return NULL; return NULL;
} }
......
...@@ -408,17 +408,15 @@ namespace sdecl = comphelper::service_decl; ...@@ -408,17 +408,15 @@ namespace sdecl = comphelper::service_decl;
// The C shared lib entry points // The C shared lib entry points
extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL svgfilter_component_getFactory( extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL svgfilter_component_getFactory(
sal_Char const* pImplName, sal_Char const* pImplName, void*, void*)
::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
::com::sun::star::registry::XRegistryKey* pRegistryKey )
{ {
if ( rtl_str_compare (pImplName, SVG_FILTER_IMPL_NAME) == 0 ) if ( rtl_str_compare (pImplName, SVG_FILTER_IMPL_NAME) == 0 )
{ {
return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, svgFilter ); return component_getFactoryHelper( pImplName, svgFilter );
} }
else if ( rtl_str_compare (pImplName, SVG_WRITER_IMPL_NAME) == 0 ) else if ( rtl_str_compare (pImplName, SVG_WRITER_IMPL_NAME) == 0 )
{ {
return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, svgWriter ); return component_getFactoryHelper( pImplName, svgWriter );
} }
return NULL; return NULL;
} }
......
...@@ -23,8 +23,6 @@ ...@@ -23,8 +23,6 @@
#include <cppuhelper/implbase1.hxx> #include <cppuhelper/implbase1.hxx>
#include <com/sun/star/uno/XComponentContext.hpp> #include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp> #include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <uno/environment.h> #include <uno/environment.h>
#include <boost/utility.hpp> #include <boost/utility.hpp>
#include <boost/function.hpp> #include <boost/function.hpp>
...@@ -313,8 +311,6 @@ struct class_ : public serviceimpl_base< detail::ServiceImpl<ImplT_>, WithArgsT ...@@ -313,8 +311,6 @@ struct class_ : public serviceimpl_base< detail::ServiceImpl<ImplT_>, WithArgsT
<pre> <pre>
inline void * component_getFactoryHelper( inline void * component_getFactoryHelper(
sal_Char const* pImplName, sal_Char const* pImplName,
::com::sun::star::lang::XMultiServiceFactory *,
::com::sun::star::registry::XRegistryKey * xRegistryKey,
ServiceDecl const& s0, ServiceDecl const& s1, ... ); ServiceDecl const& s0, ServiceDecl const& s1, ... );
</pre> </pre>
...@@ -326,8 +322,6 @@ struct class_ : public serviceimpl_base< detail::ServiceImpl<ImplT_>, WithArgsT ...@@ -326,8 +322,6 @@ struct class_ : public serviceimpl_base< detail::ServiceImpl<ImplT_>, WithArgsT
#define COMPHELPER_SERVICEDECL_make(z_, n_, unused_) \ #define COMPHELPER_SERVICEDECL_make(z_, n_, unused_) \
inline void * component_getFactoryHelper( \ inline void * component_getFactoryHelper( \
sal_Char const* pImplName, \ sal_Char const* pImplName, \
::com::sun::star::lang::XMultiServiceFactory *, \
::com::sun::star::registry::XRegistryKey *, \
BOOST_PP_ENUM_PARAMS(n_, ServiceDecl const& s) ) \ BOOST_PP_ENUM_PARAMS(n_, ServiceDecl const& s) ) \
{ \ { \
void * pRet = 0; \ void * pRet = 0; \
...@@ -379,11 +373,9 @@ BOOST_PP_REPEAT_FROM_TO(1, COMPHELPER_SERVICEDECL_COMPONENT_HELPER_MAX_ARGS, ...@@ -379,11 +373,9 @@ BOOST_PP_REPEAT_FROM_TO(1, COMPHELPER_SERVICEDECL_COMPONENT_HELPER_MAX_ARGS,
extern "C" \ extern "C" \
{ \ { \
SAL_DLLPUBLIC_EXPORT void* SAL_CALL compName##_component_getFactory( sal_Char const* pImplName, \ SAL_DLLPUBLIC_EXPORT void* SAL_CALL compName##_component_getFactory( sal_Char const* pImplName, \
void* pServiceManager, \ void*, void* ) \
void* pRegistryKey ) \
{ \ { \
return component_getFactoryHelper( pImplName, static_cast<css::lang::XMultiServiceFactory *>(pServiceManager), \ return component_getFactoryHelper( pImplName, \
static_cast<css::registry::XRegistryKey *>(pRegistryKey), \
BOOST_PP_SEQ_ENUM(varargs_) ); \ BOOST_PP_SEQ_ENUM(varargs_) ); \
} \ } \
} }
......
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <cppuhelper/implementationentry.hxx> #include <cppuhelper/implementationentry.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <comphelper/servicedecl.hxx> #include <comphelper/servicedecl.hxx>
// component exports // component exports
...@@ -57,11 +55,10 @@ extern sdecl::ServiceDecl const serviceDecl; ...@@ -57,11 +55,10 @@ extern sdecl::ServiceDecl const serviceDecl;
extern "C" extern "C"
{ {
SAL_DLLPUBLIC_EXPORT void * SAL_CALL vbaobj_component_getFactory( SAL_DLLPUBLIC_EXPORT void * SAL_CALL vbaobj_component_getFactory(
const sal_Char * pImplName, lang::XMultiServiceFactory * pServiceManager, const sal_Char * pImplName, void *, void *)
registry::XRegistryKey * pRegistryKey )
{ {
void* pRet = component_getFactoryHelper( void* pRet = component_getFactoryHelper(
pImplName, pServiceManager, pRegistryKey, range::serviceDecl, workbook::serviceDecl, worksheet::serviceDecl, window::serviceDecl, hyperlink::serviceDecl, application::serviceDecl ); pImplName, range::serviceDecl, workbook::serviceDecl, worksheet::serviceDecl, window::serviceDecl, hyperlink::serviceDecl, application::serviceDecl );
return pRet; return pRet;
} }
} }
......
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include <cppuhelper/implementationentry.hxx> #include <cppuhelper/implementationentry.hxx>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <osl/diagnose.h> #include <osl/diagnose.h>
#include <comphelper/servicedecl.hxx> #include <comphelper/servicedecl.hxx>
...@@ -52,12 +50,9 @@ extern sdecl::ServiceDecl const serviceDecl; ...@@ -52,12 +50,9 @@ extern sdecl::ServiceDecl const serviceDecl;
} }
extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL vbaswobj_component_getFactory( extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL vbaswobj_component_getFactory(
const sal_Char * pImplName, void * pServiceManager, const sal_Char * pImplName, void *, void *)
void * pRegistryKey )
{ {
void* pRet = component_getFactoryHelper(pImplName, void* pRet = component_getFactoryHelper(pImplName,
static_cast<css::lang::XMultiServiceFactory *>(pServiceManager),
static_cast<css::registry::XRegistryKey *>(pRegistryKey),
globals::serviceDecl, ::document::serviceDecl, globals::serviceDecl, ::document::serviceDecl,
wrapformat::serviceDecl, vbaeventshelper::serviceDecl ); wrapformat::serviceDecl, vbaeventshelper::serviceDecl );
OSL_TRACE("Ret is 0x%p", pRet); OSL_TRACE("Ret is 0x%p", pRet);
......
...@@ -17,8 +17,6 @@ ...@@ -17,8 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 . * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/ */
#include "cppuhelper/implementationentry.hxx" #include "cppuhelper/implementationentry.hxx"
#include "com/sun/star/lang/XMultiServiceFactory.hpp"
#include "com/sun/star/registry/XRegistryKey.hpp"
#include "comphelper/servicedecl.hxx" #include "comphelper/servicedecl.hxx"
...@@ -43,12 +41,11 @@ extern sdecl::ServiceDecl const serviceDecl; ...@@ -43,12 +41,11 @@ extern sdecl::ServiceDecl const serviceDecl;
extern "C" extern "C"
{ {
SAL_DLLPUBLIC_EXPORT void * SAL_CALL msforms_component_getFactory( SAL_DLLPUBLIC_EXPORT void * SAL_CALL msforms_component_getFactory(
const sal_Char * pImplName, lang::XMultiServiceFactory * pServiceManager, const sal_Char * pImplName, void *, void *)
registry::XRegistryKey * pRegistryKey )
{ {
SAL_INFO("vbahelper", "In component_getFactory for " << pImplName ); SAL_INFO("vbahelper", "In component_getFactory for " << pImplName );
void* pRet = component_getFactoryHelper( void* pRet = component_getFactoryHelper(
pImplName, pServiceManager, pRegistryKey, controlprovider::serviceDecl, userform::serviceDecl ); pImplName, controlprovider::serviceDecl, userform::serviceDecl );
SAL_INFO("vbahelper", "Ret is 0x" << std::hex << pRet); SAL_INFO("vbahelper", "Ret is 0x" << std::hex << pRet);
return pRet; return pRet;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment