From d3883e67bfe9f2889690b435bc57273c22e327f7 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 7 Oct 2019 14:32:45 +0200 Subject: use cppu::WeakImplHelper in VCLXRegion Change-Id: I93bb52b35b4c15dc93d7638d7fc1e00652a2a1e7 Reviewed-on: https://gerrit.libreoffice.org/80400 Tested-by: Jenkins Reviewed-by: Noel Grandin --- toolkit/source/awt/vclxregion.cxx | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'toolkit') 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::get(), - cppu::UnoType::get() - }; - return aTypeList; -} - - css::awt::Rectangle VCLXRegion::getBounds() { ::osl::Guard< ::osl::Mutex > aGuard( GetMutex() ); -- cgit