From 09e0e415e1fe1821a2ee5b12dab9b20fd7c46641 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 7 Oct 2019 14:29:16 +0200 Subject: use cppu::WeakImplHelper in VCLXGraphics Change-Id: If862818ef3eb534493ac61d5071ec1adf590ebf2 Reviewed-on: https://gerrit.libreoffice.org/80388 Tested-by: Jenkins Reviewed-by: Noel Grandin --- toolkit/source/awt/vclxgraphics.cxx | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'toolkit') diff --git a/toolkit/source/awt/vclxgraphics.cxx b/toolkit/source/awt/vclxgraphics.cxx index c5a27d244538..12f586a9a454 100644 --- a/toolkit/source/awt/vclxgraphics.cxx +++ b/toolkit/source/awt/vclxgraphics.cxx @@ -37,32 +37,9 @@ using namespace com::sun::star; // class VCLXGraphics - -// uno::XInterface -uno::Any VCLXGraphics::queryInterface( const uno::Type & rType ) -{ - uno::Any aRet = ::cppu::queryInterface( rType, - static_cast< css::awt::XGraphics* >(this), - static_cast< css::lang::XTypeProvider* >(this), - static_cast< css::lang::XUnoTunnel* >(this) ); - return (aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType )); -} - // lang::XUnoTunnel UNO3_GETIMPLEMENTATION_IMPL( VCLXGraphics ); -IMPL_IMPLEMENTATION_ID( VCLXGraphics ) - -// lang::XTypeProvider -css::uno::Sequence< css::uno::Type > VCLXGraphics::getTypes() -{ - static const css::uno::Sequence< css::uno::Type > aTypeList { - cppu::UnoType::get(), - cppu::UnoType::get() - }; - return aTypeList; -} - VCLXGraphics::VCLXGraphics() : mpOutputDevice(nullptr) , meRasterOp(RasterOp::OverPaint) -- cgit