diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-13 15:13:59 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-07-13 18:33:07 +0200 |
commit | 15f44cb6fbf2459dca522e4f5b7f525fd1d6c5e7 (patch) | |
tree | aa6ecf5b700b36b135d3bba5ef6fbf0f65d2cd8f /ucb/source/ucp/package | |
parent | 0544ea4ef08272543856d69927d0d666f61679b3 (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>
Diffstat (limited to 'ucb/source/ucp/package')
-rw-r--r-- | ucb/source/ucp/package/pkgprovider.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ucb/source/ucp/package/pkgprovider.cxx b/ucb/source/ucp/package/pkgprovider.cxx index ee3db6ce087f..1183879b1d05 100644 --- a/ucb/source/ucp/package/pkgprovider.cxx +++ b/ucb/source/ucp/package/pkgprovider.cxx @@ -160,7 +160,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. |