diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-02 15:17:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-11-03 08:21:59 +0100 |
commit | 7795907fa9434441a86e878799b04149700fe622 (patch) | |
tree | 50ce9190f1855252c14b55f8152c885f063a98c0 /cppcanvas | |
parent | 0d4891b6d1346191b56f0f8f4991cb6372e10c1d (diff) |
loplugin:constmethod in drawinglayer
Change-Id: I6a33765f6589fc2941162eb2dcaa4e0a2d9e46e1
Reviewed-on: https://gerrit.libreoffice.org/44214
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/inc/implrenderer.hxx | 6 | ||||
-rw-r--r-- | cppcanvas/source/mtfrenderer/emfplus.cxx | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/cppcanvas/source/inc/implrenderer.hxx b/cppcanvas/source/inc/implrenderer.hxx index e61f3407169a..295da4ee73d7 100644 --- a/cppcanvas/source/inc/implrenderer.hxx +++ b/cppcanvas/source/inc/implrenderer.hxx @@ -195,9 +195,9 @@ namespace cppcanvas /* EMF+ */ static void ReadRectangle (SvStream& s, float& x, float& y, float &width, float& height, bool bCompressed = false); static void ReadPoint (SvStream& s, float& x, float& y, sal_uInt32 flags); - void MapToDevice (double &x, double &y); - ::basegfx::B2DPoint Map (double ix, double iy); - ::basegfx::B2DSize MapSize (double iwidth, double iheight); + void MapToDevice (double &x, double &y) const; + ::basegfx::B2DPoint Map (double ix, double iy) const; + ::basegfx::B2DSize MapSize (double iwidth, double iheight) const; void GraphicStatePush (GraphicStateMap& map, sal_Int32 index, OutDevState const & rState); void GraphicStatePop (GraphicStateMap& map, sal_Int32 index, OutDevState& rState); diff --git a/cppcanvas/source/mtfrenderer/emfplus.cxx b/cppcanvas/source/mtfrenderer/emfplus.cxx index 60f9f51b3e15..369ac9ccb3b9 100644 --- a/cppcanvas/source/mtfrenderer/emfplus.cxx +++ b/cppcanvas/source/mtfrenderer/emfplus.cxx @@ -251,14 +251,14 @@ namespace cppcanvas s.ReadFloat( x ).ReadFloat( y ); } - void ImplRenderer::MapToDevice (double& x, double& y) + void ImplRenderer::MapToDevice (double& x, double& y) const { // TODO: other units x = 100*nMmX*x/nPixX; y = 100*nMmY*y/nPixY; } - ::basegfx::B2DPoint ImplRenderer::Map (double ix, double iy) + ::basegfx::B2DPoint ImplRenderer::Map (double ix, double iy) const { double x, y; @@ -276,7 +276,7 @@ namespace cppcanvas return ::basegfx::B2DPoint (x, y); } - ::basegfx::B2DSize ImplRenderer::MapSize (double iwidth, double iheight) + ::basegfx::B2DSize ImplRenderer::MapSize (double iwidth, double iheight) const { double w, h; |