summaryrefslogtreecommitdiff
path: root/canvas/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 09:50:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 11:31:51 +0200
commit836c40904f4424a5b7ae708171a7aab53141761a (patch)
tree5f84c7b9d57aface755ef6f4b11ccc1deb1da9c6 /canvas/source
parent4959b71cbc91dbe2c454d1d7bf2092c01c4f0cae (diff)
loplugin:referencecasting in canvas..chart2
Change-Id: I3a3671b5c44d1a7e5ca320d3d76dd5d902382cbc Reviewed-on: https://gerrit.libreoffice.org/75935 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas/source')
-rw-r--r--canvas/source/opengl/ogl_spritedevicehelper.cxx4
-rw-r--r--canvas/source/simplecanvas/simplecanvasimpl.cxx5
-rw-r--r--canvas/source/vcl/devicehelper.cxx2
3 files changed, 4 insertions, 7 deletions
diff --git a/canvas/source/opengl/ogl_spritedevicehelper.cxx b/canvas/source/opengl/ogl_spritedevicehelper.cxx
index 304414bfeea1..285afa973574 100644
--- a/canvas/source/opengl/ogl_spritedevicehelper.cxx
+++ b/canvas/source/opengl/ogl_spritedevicehelper.cxx
@@ -361,9 +361,7 @@ namespace oglcanvas
uno::Reference<rendering::XColorSpace> SpriteDeviceHelper::getColorSpace() const
{
// always the same
- return uno::Reference<rendering::XColorSpace>(
- ::canvas::tools::getStdColorSpace(),
- uno::UNO_QUERY);
+ return ::canvas::tools::getStdColorSpace();
}
void SpriteDeviceHelper::notifySizeUpdate( const awt::Rectangle& rBounds )
diff --git a/canvas/source/simplecanvas/simplecanvasimpl.cxx b/canvas/source/simplecanvas/simplecanvasimpl.cxx
index 9e209b5cf3e5..724e4dbb5372 100644
--- a/canvas/source/simplecanvas/simplecanvasimpl.cxx
+++ b/canvas/source/simplecanvas/simplecanvasimpl.cxx
@@ -72,9 +72,8 @@ namespace
uno::Sequence< uno::Sequence< geometry::RealPoint2D > > sequenceSequence( 1 );
sequenceSequence[0] = rectSequence;
- uno::Reference< rendering::XPolyPolygon2D > xRes(
- xDevice->createCompatibleLinePolyPolygon( sequenceSequence ),
- uno::UNO_QUERY );
+ uno::Reference< rendering::XPolyPolygon2D > xRes =
+ xDevice->createCompatibleLinePolyPolygon( sequenceSequence );
if( xRes.is() )
xRes->setClosed( 0, true );
return xRes;
diff --git a/canvas/source/vcl/devicehelper.cxx b/canvas/source/vcl/devicehelper.cxx
index d5961df2b777..904b565af80e 100644
--- a/canvas/source/vcl/devicehelper.cxx
+++ b/canvas/source/vcl/devicehelper.cxx
@@ -182,7 +182,7 @@ namespace vclcanvas
{
uno::Reference<rendering::XColorSpace> operator()()
{
- uno::Reference< rendering::XColorSpace > xColorSpace( canvas::tools::getStdColorSpace(), uno::UNO_QUERY );
+ uno::Reference< rendering::XColorSpace > xColorSpace = canvas::tools::getStdColorSpace();
assert( xColorSpace.is() );
return xColorSpace;
}