summaryrefslogtreecommitdiffstats
path: root/binaryurp/source/bridgefactory.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'binaryurp/source/bridgefactory.cxx')
-rw-r--r--binaryurp/source/bridgefactory.cxx39
1 files changed, 6 insertions, 33 deletions
diff --git a/binaryurp/source/bridgefactory.cxx b/binaryurp/source/bridgefactory.cxx
index ff8eff8b6927..fc1f8b071362 100644
--- a/binaryurp/source/bridgefactory.cxx
+++ b/binaryurp/source/bridgefactory.cxx
@@ -43,21 +43,6 @@
namespace binaryurp {
-css::uno::Reference< css::uno::XInterface > BridgeFactory::static_create(
- css::uno::Reference< css::uno::XComponentContext > const & /*xContext*/)
-{
- return static_cast< cppu::OWeakObject * >(new BridgeFactory);
-}
-
-OUString BridgeFactory::static_getImplementationName() {
- return "com.sun.star.comp.bridge.BridgeFactory";
-}
-
-css::uno::Sequence< OUString >
-BridgeFactory::static_getSupportedServiceNames() {
- return css::uno::Sequence<OUString>{ "com.sun.star.bridge.BridgeFactory" };
-}
-
void BridgeFactory::removeBridge(
css::uno::Reference< css::bridge::XBridge > const & bridge)
{
@@ -85,7 +70,7 @@ BridgeFactory::~BridgeFactory() {}
OUString BridgeFactory::getImplementationName()
{
- return static_getImplementationName();
+ return "com.sun.star.comp.bridge.BridgeFactory";
}
sal_Bool BridgeFactory::supportsService(OUString const & ServiceName)
@@ -95,7 +80,7 @@ sal_Bool BridgeFactory::supportsService(OUString const & ServiceName)
css::uno::Sequence< OUString > BridgeFactory::getSupportedServiceNames()
{
- return static_getSupportedServiceNames();
+ return { "com.sun.star.bridge.BridgeFactory" };
}
css::uno::Reference< css::bridge::XBridge > BridgeFactory::createBridge(
@@ -198,23 +183,11 @@ void BridgeFactory::disposing() {
}
-namespace {
-
-cppu::ImplementationEntry const services[] = {
- { &binaryurp::BridgeFactory::static_create,
- &binaryurp::BridgeFactory::static_getImplementationName,
- &binaryurp::BridgeFactory::static_getSupportedServiceNames,
- &cppu::createOneInstanceComponentFactory, nullptr, 0 },
- { nullptr, nullptr, nullptr, nullptr, nullptr, 0 }
-};
-
-}
-
-extern "C" SAL_DLLPUBLIC_EXPORT void * binaryurp_component_getFactory(
- char const * pImplName, void * pServiceManager, void * pRegistryKey)
+extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
+com_sun_star_comp_bridge_BridgeFactory_get_implementation(
+ css::uno::XComponentContext* , css::uno::Sequence<css::uno::Any> const&)
{
- return cppu::component_getFactoryHelper(
- pImplName, pServiceManager, pRegistryKey, services);
+ return cppu::acquire(static_cast< cppu::OWeakObject * >(new binaryurp::BridgeFactory));
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */