diff options
author | Arkadiy Illarionov <qarkai@gmail.com> | 2019-06-04 02:29:43 +0300 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-06-04 09:06:43 +0200 |
commit | 32eeb405d7fd6788aaa34e1bf8a04388d7a3958f (patch) | |
tree | 4bcb859baf3d570846228eb522e055879c92e24e /include/toolkit/helper/macros.hxx | |
parent | bb847b448f8b04e40ba66e7feab42f2b697383b4 (diff) |
tdf#39593 remove IMPL_XUNOTUNNEL* macros
Replace with UNO3_GETIMPLEMENTATION* macros.
Replace single usage of IMPL_XUNOTUNNEL_MINIMAL with it's body.
Change-Id: I7d4ad76399b999ebb2178ecf57edcf6bd2aa6c3e
Reviewed-on: https://gerrit.libreoffice.org/73424
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/toolkit/helper/macros.hxx')
-rw-r--r-- | include/toolkit/helper/macros.hxx | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/include/toolkit/helper/macros.hxx b/include/toolkit/helper/macros.hxx index cf50d53c15be..13d106391820 100644 --- a/include/toolkit/helper/macros.hxx +++ b/include/toolkit/helper/macros.hxx @@ -22,33 +22,6 @@ #include <sal/log.hxx> #include <osl/diagnose.h> -#include <comphelper/servicehelper.hxx> - -#define IMPL_XUNOTUNNEL_MINIMAL( ClassName ) \ -sal_Int64 ClassName::getSomething( const css::uno::Sequence< sal_Int8 >& rIdentifier ) \ -{ \ - if( ( rIdentifier.getLength() == 16 ) && ( memcmp( ClassName::GetUnoTunnelId().getConstArray(), rIdentifier.getConstArray(), 16 ) == 0 ) ) \ - { \ - return sal::static_int_cast< sal_Int64 >(reinterpret_cast< sal_IntPtr >(this)); \ - } \ - return 0; \ -} \ -namespace \ -{ \ - class the##ClassName##UnoTunnelId : public rtl::Static< UnoTunnelIdInit, the##ClassName##UnoTunnelId> {}; \ -} \ -const css::uno::Sequence< sal_Int8 >& ClassName::GetUnoTunnelId() throw() \ -{ \ - return the##ClassName##UnoTunnelId::get().getSeq(); \ -} - -#define IMPL_XUNOTUNNEL( ClassName ) \ -IMPL_XUNOTUNNEL_MINIMAL( ClassName ) \ -ClassName* ClassName::GetImplementation( const css::uno::Reference< css::uno::XInterface >& rxIFace ) \ -{ \ - css::uno::Reference< css::lang::XUnoTunnel > xUT( rxIFace, css::uno::UNO_QUERY ); \ - return xUT.is() ? reinterpret_cast<ClassName*>(sal::static_int_cast<sal_IntPtr>(xUT->getSomething( ClassName::GetUnoTunnelId() ))) : nullptr; \ -} #define IMPL_IMPLEMENTATION_ID( ClassName ) \ css::uno::Sequence< sal_Int8 > ClassName::getImplementationId() \ |