summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 09:49:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 12:22:43 +0200
commitee2bb231036b1d9d954dec369855948e6ea1f53a (patch)
treeeb7d4e569683d981e7cb9c76863f78739eefa870 /basegfx
parent1f6c4328bfa00da5cf351dd050a80b75e0f1acde (diff)
loplugin:referencecasting in avmedia..basic
Change-Id: I6790b2e3902d64fb6f714f031affa221dbaba014 Reviewed-on: https://gerrit.libreoffice.org/75934 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/tools/canvastools.cxx16
1 files changed, 6 insertions, 10 deletions
diff --git a/basegfx/source/tools/canvastools.cxx b/basegfx/source/tools/canvastools.cxx
index e91d0c636a22..3d87887e37ac 100644
--- a/basegfx/source/tools/canvastools.cxx
+++ b/basegfx/source/tools/canvastools.cxx
@@ -137,16 +137,14 @@ namespace basegfx
uno::Sequence< uno::Sequence< geometry::RealBezierSegment2D > > outputSequence( 1 );
outputSequence[0] = bezierSequenceFromB2DPolygon( rPoly );
- xRes.set( xGraphicDevice->createCompatibleBezierPolyPolygon( outputSequence ),
- uno::UNO_QUERY );
+ xRes = xGraphicDevice->createCompatibleBezierPolyPolygon( outputSequence );
}
else
{
uno::Sequence< uno::Sequence< geometry::RealPoint2D > > outputSequence( 1 );
outputSequence[0] = pointSequenceFromB2DPolygon( rPoly );
- xRes.set( xGraphicDevice->createCompatibleLinePolyPolygon( outputSequence ),
- uno::UNO_QUERY );
+ xRes = xGraphicDevice->createCompatibleLinePolyPolygon( outputSequence );
}
if( xRes.is() && rPoly.isClosed() )
@@ -168,15 +166,13 @@ namespace basegfx
if( rPolyPoly.areControlPointsUsed() )
{
- xRes.set( xGraphicDevice->createCompatibleBezierPolyPolygon(
- bezierSequenceSequenceFromB2DPolyPolygon( rPolyPoly ) ),
- uno::UNO_QUERY );
+ xRes = xGraphicDevice->createCompatibleBezierPolyPolygon(
+ bezierSequenceSequenceFromB2DPolyPolygon( rPolyPoly ) );
}
else
{
- xRes.set( xGraphicDevice->createCompatibleLinePolyPolygon(
- pointSequenceSequenceFromB2DPolyPolygon( rPolyPoly ) ),
- uno::UNO_QUERY );
+ xRes = xGraphicDevice->createCompatibleLinePolyPolygon(
+ pointSequenceSequenceFromB2DPolyPolygon( rPolyPoly ) );
}
for( i=0; i<nNumPolies; ++i )