summaryrefslogtreecommitdiff
path: root/cppcanvas/source
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-02-03 08:46:48 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-02-03 08:59:39 +0000
commitf4826959c1a5b0e6d2849d4240668b2087582848 (patch)
tree32589cbf4cbdcd20ff09417f4906f10fc7a4525f /cppcanvas/source
parent83721f4365d234b62f9e3517345c8d3fda19f2c6 (diff)
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 <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas/source')
-rw-r--r--cppcanvas/source/inc/canvasgraphichelper.hxx2
-rw-r--r--cppcanvas/source/tools/canvasgraphichelper.cxx4
2 files changed, 3 insertions, 3 deletions
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;
}
}