diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-12-15 09:24:29 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-12-15 12:34:01 +0000 |
commit | c0b59ad6e35b0cb0dea0821e95f95569739078c1 (patch) | |
tree | e21067c8be2ff9895f446d0644e82ea44a7440ae /canvas | |
parent | c526b4a58ea6eabf7454566d5e399dbaa3d5d261 (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/vcl/canvas.cxx | 2 | ||||
-rw-r--r-- | canvas/source/vcl/canvasbitmap.cxx | 2 | ||||
-rw-r--r-- | canvas/source/vcl/canvascustomsprite.cxx | 2 | ||||
-rw-r--r-- | 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<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, |