[Libreoffice-commits] core.git: desktop/source extensions/source filter/source include/comphelper sc/source sw/source vbahelper/source

Stephan Bergmann sbergman at redhat.com
Tue Jan 20 02:06:43 PST 2015


 desktop/source/deployment/dp_services.cxx        |    6 +-----
 desktop/source/deployment/gui/dp_gui_service.cxx |    6 ++----
 extensions/source/resource/resourceservices.cxx  |    6 ++----
 filter/source/graphic/Services.cxx               |    8 +++-----
 filter/source/svg/svgfilter.cxx                  |    8 +++-----
 include/comphelper/servicedecl.hxx               |   12 ++----------
 sc/source/ui/vba/service.cxx                     |    7 ++-----
 sw/source/ui/vba/service.cxx                     |    7 +------
 vbahelper/source/msforms/service.cxx             |    7 ++-----
 9 files changed, 18 insertions(+), 49 deletions(-)

New commits:
commit ea0bb58d98b651599dabf9a93f9568f46c3baeb1
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Jan 20 11:05:38 2015 +0100

    Drop unused comphelper::service_decl::component_getFactoryHelper params
    
    Change-Id: Ia47c0bc3539ddf8f925cd053a2431c742c46d337

diff --git a/desktop/source/deployment/dp_services.cxx b/desktop/source/deployment/dp_services.cxx
index c38c0a4..53ae196 100644
--- a/desktop/source/deployment/dp_services.cxx
+++ b/desktop/source/deployment/dp_services.cxx
@@ -72,14 +72,10 @@ extern sdecl::ServiceDecl const serviceDecl;
 extern "C" {
 
 SAL_DLLPUBLIC_EXPORT void * SAL_CALL deployment_component_getFactory(
-    sal_Char const * pImplName,
-    void * pServiceManager,
-    void * pRegistryKey )
+    sal_Char const * pImplName, void *, void *)
 {
     return component_getFactoryHelper(
         pImplName,
-        static_cast<css::lang::XMultiServiceFactory *>(pServiceManager),
-        static_cast<css::registry::XRegistryKey *>(pRegistryKey),
         dp_registry::backend::configuration::serviceDecl,
         dp_registry::backend::component::serviceDecl,
         dp_registry::backend::help::serviceDecl,
diff --git a/desktop/source/deployment/gui/dp_gui_service.cxx b/desktop/source/deployment/gui/dp_gui_service.cxx
index 1063f7c..9efb027 100644
--- a/desktop/source/deployment/gui/dp_gui_service.cxx
+++ b/desktop/source/deployment/gui/dp_gui_service.cxx
@@ -330,12 +330,10 @@ sdecl::ServiceDecl const updateDecl(
 extern "C" {
 
 SAL_DLLPUBLIC_EXPORT void * SAL_CALL deploymentgui_component_getFactory(
-    sal_Char const * pImplName,
-    void * pServiceManager,
-    void * pRegistryKey )
+    sal_Char const * pImplName, void *, void *)
 {
     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"
diff --git a/extensions/source/resource/resourceservices.cxx b/extensions/source/resource/resourceservices.cxx
index f8e1f5e..d25ecd5 100644
--- a/extensions/source/resource/resourceservices.cxx
+++ b/extensions/source/resource/resourceservices.cxx
@@ -30,11 +30,9 @@ const sdecl::ServiceDecl OpenOfficeResourceLoaderDecl(
     "com.sun.star.resource.OfficeResourceLoader");
 
 extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL res_component_getFactory(
-    sal_Char const* pImplName,
-    ::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
-    ::com::sun::star::registry::XRegistryKey* pRegistryKey )
+    sal_Char const* pImplName, void*, void*)
 {
-    return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey,
+    return component_getFactoryHelper( pImplName,
             ResourceIndexAccessDecl, OpenOfficeResourceLoaderDecl );
 }
 
diff --git a/filter/source/graphic/Services.cxx b/filter/source/graphic/Services.cxx
index 35cf5d7..87d0268 100644
--- a/filter/source/graphic/Services.cxx
+++ b/filter/source/graphic/Services.cxx
@@ -38,17 +38,15 @@ const comphelper::service_decl::ServiceDecl graphicExportDialog(
 
 
 extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL graphicfilter_component_getFactory(
-    sal_Char const* pImplementationName,
-    ::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
-    ::com::sun::star::registry::XRegistryKey* pRegistryKey )
+    sal_Char const* pImplementationName, void*, void*)
 {
     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 )
     {
-        return component_getFactoryHelper( pImplementationName, pServiceManager, pRegistryKey, graphicExportDialog );
+        return component_getFactoryHelper( pImplementationName, graphicExportDialog );
     }
     return NULL;
 }
diff --git a/filter/source/svg/svgfilter.cxx b/filter/source/svg/svgfilter.cxx
index 4da9382..e44c37d 100644
--- a/filter/source/svg/svgfilter.cxx
+++ b/filter/source/svg/svgfilter.cxx
@@ -408,17 +408,15 @@ namespace sdecl = comphelper::service_decl;
 
 // The C shared lib entry points
 extern "C" SAL_DLLPUBLIC_EXPORT void* SAL_CALL svgfilter_component_getFactory(
-    sal_Char const* pImplName,
-    ::com::sun::star::lang::XMultiServiceFactory* pServiceManager,
-    ::com::sun::star::registry::XRegistryKey* pRegistryKey )
+    sal_Char const* pImplName, void*, void*)
 {
     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 )
     {
-        return component_getFactoryHelper( pImplName, pServiceManager, pRegistryKey, svgWriter );
+        return component_getFactoryHelper( pImplName, svgWriter );
     }
     return NULL;
 }
diff --git a/include/comphelper/servicedecl.hxx b/include/comphelper/servicedecl.hxx
index 0b1eb22..69c6403 100644
--- a/include/comphelper/servicedecl.hxx
+++ b/include/comphelper/servicedecl.hxx
@@ -23,8 +23,6 @@
 #include <cppuhelper/implbase1.hxx>
 #include <com/sun/star/uno/XComponentContext.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 <boost/utility.hpp>
 #include <boost/function.hpp>
@@ -313,8 +311,6 @@ struct class_ : public serviceimpl_base< detail::ServiceImpl<ImplT_>, WithArgsT
     <pre>
         inline void * component_getFactoryHelper(
             sal_Char const* pImplName,
-            ::com::sun::star::lang::XMultiServiceFactory *,
-            ::com::sun::star::registry::XRegistryKey * xRegistryKey,
             ServiceDecl const& s0, ServiceDecl const& s1, ... );
     </pre>
 
@@ -326,8 +322,6 @@ struct class_ : public serviceimpl_base< detail::ServiceImpl<ImplT_>, WithArgsT
 #define COMPHELPER_SERVICEDECL_make(z_, n_, unused_) \
 inline void * component_getFactoryHelper( \
     sal_Char const* pImplName, \
-    ::com::sun::star::lang::XMultiServiceFactory *, \
-    ::com::sun::star::registry::XRegistryKey *, \
     BOOST_PP_ENUM_PARAMS(n_, ServiceDecl const& s) ) \
 { \
     void * pRet = 0; \
@@ -379,11 +373,9 @@ BOOST_PP_REPEAT_FROM_TO(1, COMPHELPER_SERVICEDECL_COMPONENT_HELPER_MAX_ARGS,
 extern "C" \
 { \
     SAL_DLLPUBLIC_EXPORT void* SAL_CALL compName##_component_getFactory( sal_Char const* pImplName, \
-                                         void*   pServiceManager, \
-                                         void*       pRegistryKey ) \
+                                         void*, void* ) \
     { \
-        return component_getFactoryHelper( pImplName, static_cast<css::lang::XMultiServiceFactory *>(pServiceManager), \
-                                           static_cast<css::registry::XRegistryKey *>(pRegistryKey), \
+        return component_getFactoryHelper( pImplName, \
                                            BOOST_PP_SEQ_ENUM(varargs_) ); \
     } \
 }
diff --git a/sc/source/ui/vba/service.cxx b/sc/source/ui/vba/service.cxx
index 64222f5..cbe2e25 100644
--- a/sc/source/ui/vba/service.cxx
+++ b/sc/source/ui/vba/service.cxx
@@ -17,8 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 #include <cppuhelper/implementationentry.hxx>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <com/sun/star/registry/XRegistryKey.hpp>
 #include <comphelper/servicedecl.hxx>
 
 // component exports
@@ -57,11 +55,10 @@ extern sdecl::ServiceDecl const serviceDecl;
 extern "C"
 {
     SAL_DLLPUBLIC_EXPORT void * SAL_CALL vbaobj_component_getFactory(
-        const sal_Char * pImplName, lang::XMultiServiceFactory * pServiceManager,
-        registry::XRegistryKey * pRegistryKey )
+        const sal_Char * pImplName, void *, void *)
     {
     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;
     }
 }
diff --git a/sw/source/ui/vba/service.cxx b/sw/source/ui/vba/service.cxx
index 33f875b..a23f1a7 100644
--- a/sw/source/ui/vba/service.cxx
+++ b/sw/source/ui/vba/service.cxx
@@ -17,8 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 #include <cppuhelper/implementationentry.hxx>
-#include <com/sun/star/lang/XMultiServiceFactory.hpp>
-#include <com/sun/star/registry/XRegistryKey.hpp>
 #include <osl/diagnose.h>
 #include <comphelper/servicedecl.hxx>
 
@@ -52,12 +50,9 @@ extern sdecl::ServiceDecl const serviceDecl;
 }
 
 extern "C" SAL_DLLPUBLIC_EXPORT void * SAL_CALL vbaswobj_component_getFactory(
-    const sal_Char * pImplName, void * pServiceManager,
-    void * pRegistryKey )
+    const sal_Char * pImplName, void *, void *)
 {
     void* pRet = component_getFactoryHelper(pImplName,
-            static_cast<css::lang::XMultiServiceFactory *>(pServiceManager),
-            static_cast<css::registry::XRegistryKey *>(pRegistryKey),
             globals::serviceDecl, ::document::serviceDecl,
             wrapformat::serviceDecl, vbaeventshelper::serviceDecl );
     OSL_TRACE("Ret is 0x%p", pRet);
diff --git a/vbahelper/source/msforms/service.cxx b/vbahelper/source/msforms/service.cxx
index 1fbde40..7320f16 100644
--- a/vbahelper/source/msforms/service.cxx
+++ b/vbahelper/source/msforms/service.cxx
@@ -17,8 +17,6 @@
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  */
 #include "cppuhelper/implementationentry.hxx"
-#include "com/sun/star/lang/XMultiServiceFactory.hpp"
-#include "com/sun/star/registry/XRegistryKey.hpp"
 #include "comphelper/servicedecl.hxx"
 
 
@@ -43,12 +41,11 @@ extern sdecl::ServiceDecl const serviceDecl;
 extern "C"
 {
     SAL_DLLPUBLIC_EXPORT void * SAL_CALL msforms_component_getFactory(
-        const sal_Char * pImplName, lang::XMultiServiceFactory * pServiceManager,
-        registry::XRegistryKey * pRegistryKey )
+        const sal_Char * pImplName, void *, void *)
     {
         SAL_INFO("vbahelper", "In component_getFactory for " << pImplName );
     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);
     return pRet;
     }


More information about the Libreoffice-commits mailing list