From 20a9e101d909cb1953101e5962b74731e1265400 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 14 Sep 2016 09:01:06 +0200 Subject: loplugin:constantparam clean up the plugin a little, and try to catch params which are default constructed, which doesn't seem to be working yet Change-Id: Ife45f18502a45cd26306424b7432c55fcbb0fd12 Reviewed-on: https://gerrit.libreoffice.org/28861 Reviewed-by: Noel Grandin Tested-by: Noel Grandin --- canvas/source/cairo/cairo_canvashelper.cxx | 6 ++---- canvas/source/cairo/cairo_canvashelper.hxx | 3 +-- 2 files changed, 3 insertions(+), 6 deletions(-) (limited to 'canvas/source') diff --git a/canvas/source/cairo/cairo_canvashelper.cxx b/canvas/source/cairo/cairo_canvashelper.cxx index 4f28f5dc9010..c5e341951279 100644 --- a/canvas/source/cairo/cairo_canvashelper.cxx +++ b/canvas/source/cairo/cairo_canvashelper.cxx @@ -1088,14 +1088,12 @@ namespace cairocanvas void CanvasHelper::doPolyPolygonPath( const uno::Reference< rendering::XPolyPolygon2D >& xPolyPolygon, Operation aOperation, bool bNoLineJoin, - const uno::Sequence< rendering::Texture >* pTextures, - cairo_t* pCairo ) const + const uno::Sequence< rendering::Texture >* pTextures ) const { const ::basegfx::B2DPolyPolygon& rPolyPoly( ::basegfx::unotools::b2DPolyPolygonFromXPolyPolygon2D(xPolyPolygon) ); - if( !pCairo ) - pCairo = mpCairo.get(); + cairo_t* pCairo = mpCairo.get(); if(bNoLineJoin && Stroke == aOperation) { diff --git a/canvas/source/cairo/cairo_canvashelper.hxx b/canvas/source/cairo/cairo_canvashelper.hxx index a5f60d763f76..1482d2bd8d5d 100644 --- a/canvas/source/cairo/cairo_canvashelper.hxx +++ b/canvas/source/cairo/cairo_canvashelper.hxx @@ -221,8 +221,7 @@ namespace cairocanvas void doPolyPolygonPath( const css::uno::Reference< css::rendering::XPolyPolygon2D >& xPolyPolygon, Operation aOperation, bool bNoLineJoin = false, - const css::uno::Sequence< css::rendering::Texture >* pTextures=nullptr, - cairo_t* pCairo=nullptr ) const; + const css::uno::Sequence< css::rendering::Texture >* pTextures=nullptr ) const; css::uno::Reference< css::rendering::XCachedPrimitive > implDrawBitmapSurface( const css::rendering::XCanvas* pCanvas, -- cgit