diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 17:49:12 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-19 18:03:11 +0100 |
commit | 8a12673c1727381ce8ab729759c3d9cd2069342e (patch) | |
tree | 654b5c1814e85c21b819e1f3753f49103bc8a1aa /ucb/source/cacher/cachedcontentresultset.cxx | |
parent | 1aabba2778e3a634be00d8a6eb0388c4aaf07ccf (diff) |
New loplugin:dynexcspec: Add @throws documentation, ucb
Change-Id: I39a50e3f066776ac670a99120e12624af39fa83a
Diffstat (limited to 'ucb/source/cacher/cachedcontentresultset.cxx')
-rw-r--r-- | ucb/source/cacher/cachedcontentresultset.cxx | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/ucb/source/cacher/cachedcontentresultset.cxx b/ucb/source/cacher/cachedcontentresultset.cxx index 97c5447e389e..e1ab4c173063 100644 --- a/ucb/source/cacher/cachedcontentresultset.cxx +++ b/ucb/source/cacher/cachedcontentresultset.cxx @@ -2246,11 +2246,24 @@ XTYPEPROVIDER_IMPL_3( CachedContentResultSetFactory, // CachedContentResultSetFactory XServiceInfo methods. +XSERVICEINFO_COMMOM_IMPL( CachedContentResultSetFactory, + OUString( "com.sun.star.comp.ucb.CachedContentResultSetFactory" ) ) +/// @throws css::uno::Exception +static css::uno::Reference< css::uno::XInterface > SAL_CALL +CachedContentResultSetFactory_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) + throw( css::uno::Exception ) +{ + css::lang::XServiceInfo* pX = + static_cast<css::lang::XServiceInfo*>(new CachedContentResultSetFactory( ucbhelper::getComponentContext(rSMgr) )); + return css::uno::Reference< css::uno::XInterface >::query( pX ); +} -XSERVICEINFO_IMPL_1_CTX( CachedContentResultSetFactory, - OUString( "com.sun.star.comp.ucb.CachedContentResultSetFactory" ), - CACHED_CONTENT_RESULTSET_FACTORY_NAME ); - +css::uno::Sequence< OUString > +CachedContentResultSetFactory::getSupportedServiceNames_Static() +{ + css::uno::Sequence< OUString > aSNS { CACHED_CONTENT_RESULTSET_FACTORY_NAME }; + return aSNS; +} // Service factory implementation. |