summaryrefslogtreecommitdiff
path: root/canvas
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-14 09:01:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-09-14 08:47:06 +0000
commit20a9e101d909cb1953101e5962b74731e1265400 (patch)
tree4e2516dcb7a5e19efb36fc4c2560b9211af83ce9 /canvas
parent0761f97525b3f3ce2cd73f8db28bf389a3c44f57 (diff)
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 <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r--canvas/source/cairo/cairo_canvashelper.cxx6
-rw-r--r--canvas/source/cairo/cairo_canvashelper.hxx3
2 files changed, 3 insertions, 6 deletions
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,