summaryrefslogtreecommitdiff
path: root/cppcanvas
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 09:52:08 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 11:47:47 +0200
commite6d23c144ccadbd962b5dfb953bf29e49a7f64a3 (patch)
treee0b0176fc3f4c08049cd72ef1ea4d24da02f0766 /cppcanvas
parent6dfc659c5e468ad969291ad39085b9c3ec53bcac (diff)
loplugin:referencecasting in cppcanvas..cui
Change-Id: Ib8a513d88575cef9c1479b91adff98170c9323e8 Reviewed-on: https://gerrit.libreoffice.org/75937 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas')
-rw-r--r--cppcanvas/source/wrapper/implbitmapcanvas.cxx3
-rw-r--r--cppcanvas/source/wrapper/implcustomsprite.cxx3
-rw-r--r--cppcanvas/source/wrapper/implspritecanvas.cxx3
-rw-r--r--cppcanvas/source/wrapper/vclfactory.cxx4
4 files changed, 4 insertions, 9 deletions
diff --git a/cppcanvas/source/wrapper/implbitmapcanvas.cxx b/cppcanvas/source/wrapper/implbitmapcanvas.cxx
index f8b0b666db5a..67ca17a6e3c4 100644
--- a/cppcanvas/source/wrapper/implbitmapcanvas.cxx
+++ b/cppcanvas/source/wrapper/implbitmapcanvas.cxx
@@ -36,8 +36,7 @@ namespace cppcanvas
namespace internal
{
ImplBitmapCanvas::ImplBitmapCanvas( const uno::Reference< rendering::XBitmapCanvas >& rCanvas ) :
- ImplCanvas( uno::Reference< rendering::XCanvas >(rCanvas,
- uno::UNO_QUERY) ),
+ ImplCanvas( rCanvas ),
mxBitmapCanvas( rCanvas ),
mxBitmap( rCanvas,
uno::UNO_QUERY )
diff --git a/cppcanvas/source/wrapper/implcustomsprite.cxx b/cppcanvas/source/wrapper/implcustomsprite.cxx
index 492f6d3de8fc..9aa56211474c 100644
--- a/cppcanvas/source/wrapper/implcustomsprite.cxx
+++ b/cppcanvas/source/wrapper/implcustomsprite.cxx
@@ -34,8 +34,7 @@ namespace cppcanvas
const uno::Reference< rendering::XCustomSprite >& rSprite,
const ImplSpriteCanvas::TransformationArbiterSharedPtr& rTransformArbiter ) :
ImplSprite( rParentCanvas,
- uno::Reference< rendering::XSprite >(rSprite,
- uno::UNO_QUERY),
+ rSprite,
rTransformArbiter ),
mpLastCanvas(),
mxCustomSprite( rSprite )
diff --git a/cppcanvas/source/wrapper/implspritecanvas.cxx b/cppcanvas/source/wrapper/implspritecanvas.cxx
index 15452f5dbb41..d9b6ee7075fc 100644
--- a/cppcanvas/source/wrapper/implspritecanvas.cxx
+++ b/cppcanvas/source/wrapper/implspritecanvas.cxx
@@ -45,8 +45,7 @@ namespace cppcanvas
ImplSpriteCanvas::ImplSpriteCanvas( const uno::Reference< rendering::XSpriteCanvas >& rCanvas ) :
- ImplCanvas( uno::Reference< rendering::XCanvas >(rCanvas,
- uno::UNO_QUERY) ),
+ ImplCanvas( rCanvas ),
mxSpriteCanvas( rCanvas ),
mpTransformArbiter( new TransformationArbiter() )
{
diff --git a/cppcanvas/source/wrapper/vclfactory.cxx b/cppcanvas/source/wrapper/vclfactory.cxx
index f013aef5b92c..3cf795fe0c42 100644
--- a/cppcanvas/source/wrapper/vclfactory.cxx
+++ b/cppcanvas/source/wrapper/vclfactory.cxx
@@ -55,9 +55,7 @@ namespace cppcanvas
{
return SpriteCanvasSharedPtr(
new internal::ImplSpriteCanvas(
- uno::Reference< rendering::XSpriteCanvas >(
- rVCLWindow.GetSpriteCanvas(),
- uno::UNO_QUERY) ) );
+ rVCLWindow.GetSpriteCanvas() ) );
}
SpriteCanvasSharedPtr VCLFactory::createSpriteCanvas( const uno::Reference< rendering::XSpriteCanvas >& xCanvas )