diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 09:07:24 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-01-26 09:07:24 +0100 |
commit | 00424a277b5a92bd71f78103049850ae966be626 (patch) | |
tree | 2ea37be277862e0ffdfe415f14bdfbae284a6109 /include/ucbhelper | |
parent | 9f5c54856fe24f5ada639f7eaff2cfbf744c8cfe (diff) |
loplugin:dynexcspec
Change-Id: I5e30befa9338bfd72e237e2bdb7c157526d32b85
Diffstat (limited to 'include/ucbhelper')
-rw-r--r-- | include/ucbhelper/macros.hxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/include/ucbhelper/macros.hxx b/include/ucbhelper/macros.hxx index 6104738ca324..6f9311e8657f 100644 --- a/include/ucbhelper/macros.hxx +++ b/include/ucbhelper/macros.hxx @@ -185,17 +185,6 @@ Class::getSupportedServiceNames() \ return getSupportedServiceNames_Static(); \ } -#define XSERVICEINFO_CREATE_INSTANCE_IMPL_CTX( Class ) \ -static css::uno::Reference< css::uno::XInterface > SAL_CALL \ -Class##_CreateInstance( const css::uno::Reference< css::lang::XMultiServiceFactory> & rSMgr ) \ - throw( css::uno::Exception ) \ -{ \ - css::lang::XServiceInfo* pX = \ - static_cast<css::lang::XServiceInfo*>(new Class( ucbhelper::getComponentContext(rSMgr) )); \ - return css::uno::Reference< css::uno::XInterface >::query( pX ); \ -} - - // XServiceInfo impl. @@ -224,20 +213,6 @@ Class::getSupportedServiceNames_Static() \ return { Service1 }; \ } -// Service with service factory. - -// 1 service name -#define XSERVICEINFO_IMPL_1_CTX( Class, ImplName, Service1 ) \ -XSERVICEINFO_COMMOM_IMPL( Class, ImplName ) \ -XSERVICEINFO_CREATE_INSTANCE_IMPL_CTX( Class ) \ - \ -css::uno::Sequence< OUString > \ -Class::getSupportedServiceNames_Static() \ -{ \ - css::uno::Sequence< OUString > aSNS { Service1 }; \ - return aSNS; \ -} - #endif /* ! INCLUDED_UCBHELPER_MACROS_HXX */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |