diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-07 14:25:14 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-10-07 21:30:44 +0200 |
commit | be634d021229408bf9e30b4cb75be5debf9a3ffd (patch) | |
tree | 7de205b0fead6e05d7ec71cb5ed5b575703bd2e4 /toolkit | |
parent | 7a3509b153246a7018748d83c9fef552544eab2b (diff) |
use cppu::WeakImplHelper in VCLXDevice
Change-Id: Ia83cc372d53db41edc8199077db91cb7b1d06e24
Reviewed-on: https://gerrit.libreoffice.org/80386
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r-- | toolkit/source/awt/vclxdevice.cxx | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/toolkit/source/awt/vclxdevice.cxx b/toolkit/source/awt/vclxdevice.cxx index 2cd53e927b54..73dba634e9ff 100644 --- a/toolkit/source/awt/vclxdevice.cxx +++ b/toolkit/source/awt/vclxdevice.cxx @@ -50,34 +50,9 @@ VCLXDevice::~VCLXDevice() mpOutputDevice.reset(); } -// css::uno::XInterface -css::uno::Any VCLXDevice::queryInterface( const css::uno::Type & rType ) -{ - css::uno::Any aRet = ::cppu::queryInterface( rType, - static_cast< css::awt::XDevice* >(this), - static_cast< css::lang::XUnoTunnel* >(this), - static_cast< css::lang::XTypeProvider* >(this), - static_cast< css::awt::XUnitConversion* >(this) ); - return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType )); -} - // css::lang::XUnoTunnel UNO3_GETIMPLEMENTATION_IMPL( VCLXDevice ); -IMPL_IMPLEMENTATION_ID( VCLXDevice ) - -// css::lang::XTypeProvider -css::uno::Sequence< css::uno::Type > VCLXDevice::getTypes() -{ - static const css::uno::Sequence< css::uno::Type > aTypeList { - cppu::UnoType<css::lang::XTypeProvider>::get(), - cppu::UnoType<css::awt::XDevice>::get(), - cppu::UnoType<css::awt::XUnitConversion>::get() - }; - return aTypeList; -} - - // css::awt::XDevice, css::uno::Reference< css::awt::XGraphics > VCLXDevice::createGraphics( ) { |