summaryrefslogtreecommitdiff
path: root/vcl/source/window/dockingarea.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-02-21 15:56:58 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-22 20:18:57 +0100
commit4a8968039a2e1d9e7aee10433ced1f59c0392d7a (patch)
tree7074b5b4a94b5d509487872b8201bc5872dc107e /vcl/source/window/dockingarea.cxx
parent1d7f96a324a4c2ab82a04513c6a38dc31fd061fa (diff)
loplugin:changetoolsgen in vcl
Change-Id: I0fc68cf51fb23ed9bb86a5087e8247c81b024494 Reviewed-on: https://gerrit.libreoffice.org/50107 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/window/dockingarea.cxx')
-rw-r--r--vcl/source/window/dockingarea.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx
index bbed7a062486..4d01b3625e0c 100644
--- a/vcl/source/window/dockingarea.cxx
+++ b/vcl/source/window/dockingarea.cxx
@@ -231,17 +231,17 @@ void DockingAreaWindow::Paint(vcl::RenderContext& rRenderContext, const tools::R
tools::Rectangle aTBRect;
if (IsHorizontal())
{
- aTBRect.Left() = 0;
- aTBRect.Right() = aOutSz.Width() - 1;
- aTBRect.Top() = range.first;
- aTBRect.Bottom() = range.first + range.second - 1;
+ aTBRect.SetLeft( 0 );
+ aTBRect.SetRight( aOutSz.Width() - 1 );
+ aTBRect.SetTop( range.first );
+ aTBRect.SetBottom( range.first + range.second - 1 );
}
else
{
- aTBRect.Left() = range.first;
- aTBRect.Right() = range.first + range.second - 1;
- aTBRect.Top() = 0;
- aTBRect.Bottom() = aOutSz.Height() - 1;
+ aTBRect.SetLeft( range.first );
+ aTBRect.SetRight( range.first + range.second - 1 );
+ aTBRect.SetTop( 0 );
+ aTBRect.SetBottom( aOutSz.Height() - 1 );
}
rRenderContext.DrawNativeControl(ControlType::Toolbar, IsHorizontal() ? ControlPart::DrawBackgroundHorz : ControlPart::DrawBackgroundVert,
aTBRect, nState, aControlValue, OUString());