summaryrefslogtreecommitdiff
path: root/toolkit
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-01-13 18:25:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-01-16 08:41:00 +0000
commitd21260708b67c18cde3531ae565af833688d6f6a (patch)
tree0d2ab38eea6f08eece20d5f885bc8484a422f6cd /toolkit
parent8081533f7c35939b64f11894470c3e033057a887 (diff)
XUnoTunnel->dynamic_cast in VCLXGraphics
Change-Id: Ia401542ec8249809ad16dadd79c51aa025044b42 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145534 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'toolkit')
-rw-r--r--toolkit/inc/awt/vclxgraphics.hxx7
-rw-r--r--toolkit/source/awt/vclxgraphics.cxx3
2 files changed, 1 insertions, 9 deletions
diff --git a/toolkit/inc/awt/vclxgraphics.hxx b/toolkit/inc/awt/vclxgraphics.hxx
index ff697ead31b4..acf03dd17874 100644
--- a/toolkit/inc/awt/vclxgraphics.hxx
+++ b/toolkit/inc/awt/vclxgraphics.hxx
@@ -28,7 +28,6 @@
#include <vcl/vclptr.hxx>
#include <com/sun/star/awt/XGraphics2.hpp>
-#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <memory>
@@ -52,8 +51,7 @@ namespace o3tl
class VCLXGraphics final : public cppu::WeakImplHelper<
- css::awt::XGraphics2,
- css::lang::XUnoTunnel>
+ css::awt::XGraphics2>
{
private:
// used to return same reference on each call to getDevice()
@@ -80,9 +78,6 @@ public:
void SetOutputDevice( OutputDevice* pOutDev );
OutputDevice* GetOutputDevice() const { return mpOutputDevice; }
- // css::lang::XUnoTunnel
- UNO3_GETIMPLEMENTATION_DECL(VCLXGraphics)
-
// css::awt::XGraphics Attributes
virtual css::uno::Reference< css::awt::XDevice > SAL_CALL getDevice() override;
virtual void SAL_CALL setTextColor( ::sal_Int32 _textcolor ) override;
diff --git a/toolkit/source/awt/vclxgraphics.cxx b/toolkit/source/awt/vclxgraphics.cxx
index bbbb75e0545d..b89a67f49506 100644
--- a/toolkit/source/awt/vclxgraphics.cxx
+++ b/toolkit/source/awt/vclxgraphics.cxx
@@ -35,9 +35,6 @@ using namespace com::sun::star;
-// lang::XUnoTunnel
-UNO3_GETIMPLEMENTATION_IMPL( VCLXGraphics );
-
VCLXGraphics::VCLXGraphics()
: mpOutputDevice(nullptr)
, meRasterOp(RasterOp::OverPaint)