diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-07 14:32:45 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-08 08:25:39 +0200 |
commit | d3883e67bfe9f2889690b435bc57273c22e327f7 (patch) | |
tree | 04df6c54aecc9b1802fc10319b27a80c0ec64b7a /toolkit | |
parent | e1771399490fe0d2c40fb250f03c362128916223 (diff) |
use cppu::WeakImplHelper in VCLXRegion
Change-Id: I93bb52b35b4c15dc93d7638d7fc1e00652a2a1e7
Reviewed-on: https://gerrit.libreoffice.org/80400
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxregion.cxx | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/toolkit/source/awt/vclxregion.cxx b/toolkit/source/awt/vclxregion.cxx index fa24e203d0a8..93298a1893a0 100644 --- a/toolkit/source/awt/vclxregion.cxx +++ b/toolkit/source/awt/vclxregion.cxx @@ -34,32 +34,9 @@ VCLXRegion::~VCLXRegion() { } -// css::uno::XInterface -css::uno::Any VCLXRegion::queryInterface( const css::uno::Type & rType ) -{ - css::uno::Any aRet = ::cppu::queryInterface( rType, - static_cast< css::awt::XRegion* >(this), - static_cast< css::lang::XUnoTunnel* >(this), - static_cast< css::lang::XTypeProvider* >(this) ); - return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType )); -} - // css::lang::XUnoTunnel UNO3_GETIMPLEMENTATION_IMPL( VCLXRegion ); -IMPL_IMPLEMENTATION_ID( VCLXRegion ) - -// css::lang::XTypeProvider -css::uno::Sequence< css::uno::Type > VCLXRegion::getTypes() -{ - static const css::uno::Sequence< css::uno::Type > aTypeList { - cppu::UnoType<css::lang::XTypeProvider>::get(), - cppu::UnoType<css::awt::XRegion>::get() - }; - return aTypeList; -} - - css::awt::Rectangle VCLXRegion::getBounds() { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); |