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:
@@ -98,7 +98,7 @@ namespace vclcanvas
|
|||||||
}
|
}
|
||||||
|
|
||||||
sal_Int64 Canvas::getSomething(css::uno::Sequence<sal_Int8> const & aIdentifier) {
|
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,
|
bool Canvas::repaint( const GraphicObjectSharedPtr& rGrf,
|
||||||
|
@@ -86,7 +86,7 @@ namespace vclcanvas
|
|||||||
}
|
}
|
||||||
|
|
||||||
sal_Int64 CanvasBitmap::getSomething(css::uno::Sequence<sal_Int8> const & aIdentifier) {
|
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
|
BitmapEx CanvasBitmap::getBitmap() const
|
||||||
|
@@ -118,7 +118,7 @@ namespace vclcanvas
|
|||||||
}
|
}
|
||||||
|
|
||||||
sal_Int64 CanvasCustomSprite::getSomething(css::uno::Sequence<sal_Int8> const & aIdentifier) {
|
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
|
// Sprite
|
||||||
|
@@ -163,7 +163,7 @@ namespace vclcanvas
|
|||||||
}
|
}
|
||||||
|
|
||||||
sal_Int64 SpriteCanvas::getSomething(css::uno::Sequence<sal_Int8> const & aIdentifier) {
|
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,
|
bool SpriteCanvas::repaint( const GraphicObjectSharedPtr& rGrf,
|
||||||
|
Reference in New Issue
Block a user