From f4826959c1a5b0e6d2849d4240668b2087582848 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 3 Feb 2017 08:46:48 +0200 Subject: new loplugin:unusedenumconstants These are the simple removals, where it is obviously safe, the more complex ones will come in separate commits Change-Id: I7211945a6a5576354b60d9c709940ce9b674f308 Reviewed-on: https://gerrit.libreoffice.org/33828 Tested-by: Jenkins Reviewed-by: Noel Grandin --- cppcanvas/source/inc/canvasgraphichelper.hxx | 2 +- cppcanvas/source/tools/canvasgraphichelper.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'cppcanvas') diff --git a/cppcanvas/source/inc/canvasgraphichelper.hxx b/cppcanvas/source/inc/canvasgraphichelper.hxx index b992b1d409b0..6a091d78895a 100644 --- a/cppcanvas/source/inc/canvasgraphichelper.hxx +++ b/cppcanvas/source/inc/canvasgraphichelper.hxx @@ -50,7 +50,7 @@ namespace cppcanvas virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) override; virtual void setClip( const ::basegfx::B2DPolyPolygon& rClipPoly ) override; virtual void setClip() override; - virtual void setCompositeOp( CompositeOp aOp ) override; + virtual void setCompositeOp( sal_Int8 aOp ) override; protected: // for our clients diff --git a/cppcanvas/source/tools/canvasgraphichelper.cxx b/cppcanvas/source/tools/canvasgraphichelper.cxx index 795d4a2056a4..56b0f7543790 100644 --- a/cppcanvas/source/tools/canvasgraphichelper.cxx +++ b/cppcanvas/source/tools/canvasgraphichelper.cxx @@ -93,9 +93,9 @@ namespace cppcanvas return maRenderState; } - void CanvasGraphicHelper::setCompositeOp( CompositeOp aOp ) + void CanvasGraphicHelper::setCompositeOp( sal_Int8 aOp ) { - maRenderState.CompositeOperation = (sal_Int8)aOp; + maRenderState.CompositeOperation = aOp; } } -- cgit