From c0b59ad6e35b0cb0dea0821e95f95569739078c1 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 15 Dec 2022 09:24:29 +0100 Subject: [PATCH] Consistently use comphelper::getSomethingImpl(aIdentifier, this) ...rather than comphelper::getSomethingImpl(aIdentifier, static_cast(this)) to delegate to an inherited class I Change-Id: I85d5b4923428e7082e3dbcea4846eef118f5f201 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144211 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- canvas/source/vcl/canvas.cxx | 2 +- canvas/source/vcl/canvasbitmap.cxx | 2 +- canvas/source/vcl/canvascustomsprite.cxx | 2 +- canvas/source/vcl/spritecanvas.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/canvas/source/vcl/canvas.cxx b/canvas/source/vcl/canvas.cxx index 5cbda63a50ab..48527380f38b 100644 --- a/canvas/source/vcl/canvas.cxx +++ b/canvas/source/vcl/canvas.cxx @@ -98,7 +98,7 @@ namespace vclcanvas } sal_Int64 Canvas::getSomething(css::uno::Sequence const & aIdentifier) { - return comphelper::getSomethingImpl(aIdentifier, static_cast(this)); + return comphelper::getSomethingImpl(aIdentifier, this); } bool Canvas::repaint( const GraphicObjectSharedPtr& rGrf, diff --git a/canvas/source/vcl/canvasbitmap.cxx b/canvas/source/vcl/canvasbitmap.cxx index 38aababdf03b..70ad59f24afa 100644 --- a/canvas/source/vcl/canvasbitmap.cxx +++ b/canvas/source/vcl/canvasbitmap.cxx @@ -86,7 +86,7 @@ namespace vclcanvas } sal_Int64 CanvasBitmap::getSomething(css::uno::Sequence const & aIdentifier) { - return comphelper::getSomethingImpl(aIdentifier, static_cast(this)); + return comphelper::getSomethingImpl(aIdentifier, this); } BitmapEx CanvasBitmap::getBitmap() const diff --git a/canvas/source/vcl/canvascustomsprite.cxx b/canvas/source/vcl/canvascustomsprite.cxx index b13fad66b8c6..1cd22bd3559b 100644 --- a/canvas/source/vcl/canvascustomsprite.cxx +++ b/canvas/source/vcl/canvascustomsprite.cxx @@ -118,7 +118,7 @@ namespace vclcanvas } sal_Int64 CanvasCustomSprite::getSomething(css::uno::Sequence const & aIdentifier) { - return comphelper::getSomethingImpl(aIdentifier, static_cast(this)); + return comphelper::getSomethingImpl(aIdentifier, this); } // Sprite diff --git a/canvas/source/vcl/spritecanvas.cxx b/canvas/source/vcl/spritecanvas.cxx index a366b32a5c4c..04780d8f0375 100644 --- a/canvas/source/vcl/spritecanvas.cxx +++ b/canvas/source/vcl/spritecanvas.cxx @@ -163,7 +163,7 @@ namespace vclcanvas } sal_Int64 SpriteCanvas::getSomething(css::uno::Sequence const & aIdentifier) { - return comphelper::getSomethingImpl(aIdentifier, static_cast(this)); + return comphelper::getSomethingImpl(aIdentifier, this); } bool SpriteCanvas::repaint( const GraphicObjectSharedPtr& rGrf,