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>
This commit is contained in:
Stephan Bergmann 2022-12-15 09:24:29 +01:00
parent c526b4a58e
commit c0b59ad6e3
4 changed files with 4 additions and 4 deletions

View file

@ -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,

View file

@ -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

View file

@ -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

View file

@ -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,