diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-14 12:48:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-15 07:28:07 +0100 |
commit | 0d9f3f7628f88fa66aaeea1f7148db620e17e728 (patch) | |
tree | 51cd0289fa399fbc338e0701f7ee13be8d228eb1 /sd/source/ui/docshell | |
parent | c82802a9ee3514d0b98fbb3783abbc17ec02c3b6 (diff) |
loplugin:changetoolsgen in sd
Change-Id: I41c5510f95167fe028f219fb593f12b75709bd65
Reviewed-on: https://gerrit.libreoffice.org/49726
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/docshell')
-rw-r--r-- | sd/source/ui/docshell/docshel2.cxx | 4 | ||||
-rw-r--r-- | sd/source/ui/docshell/sdclient.cxx | 8 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/docshell/docshel2.cxx b/sd/source/ui/docshell/docshel2.cxx index 1e02c6e8e4d7..e9c09b70b722 100644 --- a/sd/source/ui/docshell/docshel2.cxx +++ b/sd/source/ui/docshell/docshel2.cxx @@ -103,8 +103,8 @@ void DrawDocShell::Draw(OutputDevice* pOut, const JobSetup&, sal_uInt16 nAspect) { MapMode aMapMode = aOldMapMode; Point aOrigin = aMapMode.GetOrigin(); - aOrigin.X() += 1; - aOrigin.Y() += 1; + aOrigin.setX( aOrigin.X() + 1 ); + aOrigin.setY( aOrigin.Y() + 1 ); aMapMode.SetOrigin(aOrigin); pOut->SetMapMode(aMapMode); } diff --git a/sd/source/ui/docshell/sdclient.cxx b/sd/source/ui/docshell/sdclient.cxx index f184f8fc422f..e5a4e97278cd 100644 --- a/sd/source/ui/docshell/sdclient.cxx +++ b/sd/source/ui/docshell/sdclient.cxx @@ -88,10 +88,10 @@ void Client::RequestNewObjectArea( ::tools::Rectangle& aObjRect ) Point aWorkAreaTL = aWorkArea.TopLeft(); Point aWorkAreaBR = aWorkArea.BottomRight(); - aPos.X() = std::max(aPos.X(), aWorkAreaTL.X()); - aPos.X() = std::min(aPos.X(), aWorkAreaBR.X()-aSize.Width()); - aPos.Y() = std::max(aPos.Y(), aWorkAreaTL.Y()); - aPos.Y() = std::min(aPos.Y(), aWorkAreaBR.Y()-aSize.Height()); + aPos.setX( std::max(aPos.X(), aWorkAreaTL.X()) ); + aPos.setX( std::min(aPos.X(), aWorkAreaBR.X()-aSize.Width()) ); + aPos.setY( std::max(aPos.Y(), aWorkAreaTL.Y()) ); + aPos.setY( std::min(aPos.Y(), aWorkAreaBR.Y()-aSize.Height()) ); aObjRect.SetPos(aPos); } |