diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-13 14:21:50 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-14 12:50:37 +0100 |
commit | f841dada1a5018897cce29ccf972da33ece4738c (patch) | |
tree | af861d8c6abf98eed1b20ba7fdab2b3997d6e9be /canvas | |
parent | 9763383ebb7e5b10ba9e7557dffa803a8d392c0d (diff) |
loplugin:changetoolsgen in canvas..cui
Change-Id: I4e320055a3dbe4159c2aa2714e1ee98182e1e80a
Reviewed-on: https://gerrit.libreoffice.org/49642
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'canvas')
-rw-r--r-- | canvas/source/cairo/cairo_canvashelper_text.cxx | 4 | ||||
-rw-r--r-- | canvas/source/vcl/canvashelper_texturefill.cxx | 8 | ||||
-rw-r--r-- | canvas/source/vcl/impltools.cxx | 4 | ||||
-rw-r--r-- | canvas/source/vcl/spritehelper.cxx | 8 |
4 files changed, 12 insertions, 12 deletions
diff --git a/canvas/source/cairo/cairo_canvashelper_text.cxx b/canvas/source/cairo/cairo_canvashelper_text.cxx index 806bc415e7b1..b0d07f87cdbe 100644 --- a/canvas/source/cairo/cairo_canvashelper_text.cxx +++ b/canvas/source/cairo/cairo_canvashelper_text.cxx @@ -99,8 +99,8 @@ namespace cairocanvas io_rVCLFont.SetOrientation( static_cast< short >( ::basegfx::fround(-fmod(nRotate, 2*M_PI)*(1800.0/M_PI)) ) ); // TODO(F2): Missing functionality in VCL: shearing - o_rPoint.X() = ::basegfx::fround(aTranslate.getX()); - o_rPoint.Y() = ::basegfx::fround(aTranslate.getY()); + o_rPoint.setX( ::basegfx::fround(aTranslate.getX()) ); + o_rPoint.setY( ::basegfx::fround(aTranslate.getY()) ); return true; } diff --git a/canvas/source/vcl/canvashelper_texturefill.cxx b/canvas/source/vcl/canvashelper_texturefill.cxx index 9d7aaa502a88..892d6d781e8f 100644 --- a/canvas/source/vcl/canvashelper_texturefill.cxx +++ b/canvas/source/vcl/canvashelper_texturefill.cxx @@ -78,8 +78,8 @@ namespace vclcanvas for( nY=0; nY < nTilesY; ++nY ) { - aCurrPos.X() = rPosPixel.X() + nY*rNextTileY.Width(); - aCurrPos.Y() = rPosPixel.Y() + nY*rNextTileY.Height(); + aCurrPos.setX( rPosPixel.X() + nY*rNextTileY.Width() ); + aCurrPos.setY( rPosPixel.Y() + nY*rNextTileY.Height() ); for( nX=0; nX < nTilesX; ++nX ) { @@ -90,8 +90,8 @@ namespace vclcanvas rTileSize, &rAttr ); - aCurrPos.X() += rNextTileX.Width(); - aCurrPos.Y() += rNextTileX.Height(); + aCurrPos.setX( aCurrPos.X() + rNextTileX.Width() ); + aCurrPos.setY( aCurrPos.Y() + rNextTileX.Height() ); } } diff --git a/canvas/source/vcl/impltools.cxx b/canvas/source/vcl/impltools.cxx index 055eb061930e..dd0ca8a0714b 100644 --- a/canvas/source/vcl/impltools.cxx +++ b/canvas/source/vcl/impltools.cxx @@ -140,8 +140,8 @@ namespace vclcanvas io_rVCLFont.SetOrientation( static_cast< short >( ::basegfx::fround(-fmod(nRotate, 2*M_PI)*(1800.0/M_PI)) ) ); // TODO(F2): Missing functionality in VCL: shearing - o_rPoint.X() = ::basegfx::fround(aTranslate.getX()); - o_rPoint.Y() = ::basegfx::fround(aTranslate.getY()); + o_rPoint.setX( ::basegfx::fround(aTranslate.getX()) ); + o_rPoint.setY( ::basegfx::fround(aTranslate.getY()) ); return true; } diff --git a/canvas/source/vcl/spritehelper.cxx b/canvas/source/vcl/spritehelper.cxx index 6be7dd8c258f..1b7d3c3cde72 100644 --- a/canvas/source/vcl/spritehelper.cxx +++ b/canvas/source/vcl/spritehelper.cxx @@ -196,8 +196,8 @@ namespace vclcanvas rOrigOutputSize.getY()), aTransform ); - aOutPos.X() = ::basegfx::fround( aDestRect.getMinX() ); - aOutPos.Y() = ::basegfx::fround( aDestRect.getMinY() ); + aOutPos.setX( ::basegfx::fround( aDestRect.getMinX() ) ); + aOutPos.setY( ::basegfx::fround( aDestRect.getMinY() ) ); // TODO(P3): Use optimized bitmap transformation here. @@ -217,8 +217,8 @@ namespace vclcanvas aOutputSize.setHeight( ::basegfx::fround( rOrigOutputSize.getY() * aTransform.get(1,1) ) ); - aOutPos.X() = ::basegfx::fround( aTransform.get(0,2) ); - aOutPos.Y() = ::basegfx::fround( aTransform.get(1,2) ); + aOutPos.setX( ::basegfx::fround( aTransform.get(0,2) ) ); + aOutPos.setY( ::basegfx::fround( aTransform.get(1,2) ) ); } } |