diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-13 15:13:59 +0200 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2022-03-10 16:00:12 +0100 |
commit | 8bb6d4d1737fe5600474cda5a0cf7b1f806752f5 (patch) | |
tree | 35738d5196bb330b4a8158e25aae42a149afba66 | |
parent | abb85b390bab2073fd03ac3732232e35b9519401 (diff) |
expand out an UNO macro
to make the ongoing convert-to-UNO-constructor work easier
Change-Id: I99596561832b10538505cf4dfdabaf11d6e4d7cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98664
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
(cherry picked from commit 15f44cb6fbf2459dca522e4f5b7f525fd1d6c5e7)
-rw-r--r-- | ucb/source/ucp/webdav-neon/webdavprovider.cxx | 11 | ||||
-rw-r--r-- | ucb/source/ucp/webdav/webdavprovider.cxx | 10 |
2 files changed, 19 insertions, 2 deletions
diff --git a/ucb/source/ucp/webdav-neon/webdavprovider.cxx b/ucb/source/ucp/webdav-neon/webdavprovider.cxx index 2b0bd5bfe92b..c022e0f8f531 100644 --- a/ucb/source/ucp/webdav-neon/webdavprovider.cxx +++ b/ucb/source/ucp/webdav-neon/webdavprovider.cxx @@ -116,7 +116,16 @@ ContentProvider::getSupportedServiceNames_Static() // Service factory implementation. -ONE_INSTANCE_SERVICE_FACTORY_IMPL( ContentProvider ); +css::uno::Reference< css::lang::XSingleServiceFactory > +ContentProvider::createServiceFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& rxServiceMgr ) +{ + return cppu::createOneInstanceFactory( + rxServiceMgr, + ContentProvider::getImplementationName_Static(), + ContentProvider_CreateInstance, + ContentProvider::getSupportedServiceNames_Static() ); +} + // XContentProvider methods. diff --git a/ucb/source/ucp/webdav/webdavprovider.cxx b/ucb/source/ucp/webdav/webdavprovider.cxx index 9a78c0648ebe..2fe0151c6cf8 100644 --- a/ucb/source/ucp/webdav/webdavprovider.cxx +++ b/ucb/source/ucp/webdav/webdavprovider.cxx @@ -103,8 +103,16 @@ ContentProvider::getSupportedServiceNames_Static() // Service factory implementation. +css::uno::Reference< css::lang::XSingleServiceFactory > +ContentProvider::createServiceFactory( const css::uno::Reference< css::lang::XMultiServiceFactory >& rxServiceMgr ) +{ + return cppu::createOneInstanceFactory( + rxServiceMgr, + ContentProvider::getImplementationName_Static(), + ContentProvider_CreateInstance, + ContentProvider::getSupportedServiceNames_Static() ); +} -ONE_INSTANCE_SERVICE_FACTORY_IMPL( ContentProvider ); // XContentProvider methods. |