summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/webdav/webdavprovider.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-01-26 09:07:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-01-26 09:07:24 +0100
commit00424a277b5a92bd71f78103049850ae966be626 (patch)
tree2ea37be277862e0ffdfe415f14bdfbae284a6109 /ucb/source/ucp/webdav/webdavprovider.cxx
parent9f5c54856fe24f5ada639f7eaff2cfbf744c8cfe (diff)
loplugin:dynexcspec
Change-Id: I5e30befa9338bfd72e237e2bdb7c157526d32b85
Diffstat (limited to 'ucb/source/ucp/webdav/webdavprovider.cxx')
-rw-r--r--ucb/source/ucp/webdav/webdavprovider.cxx21
1 files changed, 17 insertions, 4 deletions
diff --git a/ucb/source/ucp/webdav/webdavprovider.cxx b/ucb/source/ucp/webdav/webdavprovider.cxx
index cbc7cc32ec32..4a76fa8f7f73 100644
--- a/ucb/source/ucp/webdav/webdavprovider.cxx
+++ b/ucb/source/ucp/webdav/webdavprovider.cxx
@@ -82,11 +82,24 @@ XTYPEPROVIDER_IMPL_3( ContentProvider,
// XServiceInfo methods.
+XSERVICEINFO_COMMOM_IMPL( ContentProvider,
+ OUString( "com.sun.star.comp.WebDAVContentProvider" ) )
+/// @throws css::uno::Exception
+static css::uno::Reference< css::uno::XInterface > SAL_CALL
+ContentProvider_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr )
+ throw( css::uno::Exception )
+{
+ css::lang::XServiceInfo* pX =
+ static_cast<css::lang::XServiceInfo*>(new ContentProvider( ucbhelper::getComponentContext(rSMgr) ));
+ return css::uno::Reference< css::uno::XInterface >::query( pX );
+}
-XSERVICEINFO_IMPL_1_CTX( ContentProvider,
- OUString( "com.sun.star.comp.WebDAVContentProvider" ),
- WEBDAV_CONTENT_PROVIDER_SERVICE_NAME );
-
+css::uno::Sequence< OUString >
+ContentProvider::getSupportedServiceNames_Static()
+{
+ css::uno::Sequence< OUString > aSNS { WEBDAV_CONTENT_PROVIDER_SERVICE_NAME };
+ return aSNS;
+}
// Service factory implementation.