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(-)
New commits: commit c0b59ad6e35b0cb0dea0821e95f95569739078c1 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Dec 15 09:24:29 2022 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Thu Dec 15 12:34:01 2022 +0000 Consistently use comphelper::getSomethingImpl<I>(aIdentifier, this) ...rather than comphelper::getSomethingImpl(aIdentifier, static_cast<I *>(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 <sberg...@redhat.com> 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<sal_Int8> const & aIdentifier) { - return comphelper::getSomethingImpl(aIdentifier, static_cast<RepaintTarget *>(this)); + return comphelper::getSomethingImpl<RepaintTarget>(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<sal_Int8> const & aIdentifier) { - return comphelper::getSomethingImpl(aIdentifier, static_cast<RepaintTarget *>(this)); + return comphelper::getSomethingImpl<RepaintTarget>(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<sal_Int8> const & aIdentifier) { - return comphelper::getSomethingImpl(aIdentifier, static_cast<RepaintTarget *>(this)); + return comphelper::getSomethingImpl<RepaintTarget>(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<sal_Int8> const & aIdentifier) { - return comphelper::getSomethingImpl(aIdentifier, static_cast<RepaintTarget *>(this)); + return comphelper::getSomethingImpl<RepaintTarget>(aIdentifier, this); } bool SpriteCanvas::repaint( const GraphicObjectSharedPtr& rGrf,