From 4a8968039a2e1d9e7aee10433ced1f59c0392d7a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 21 Feb 2018 15:56:58 +0200 Subject: loplugin:changetoolsgen in vcl Change-Id: I0fc68cf51fb23ed9bb86a5087e8247c81b024494 Reviewed-on: https://gerrit.libreoffice.org/50107 Tested-by: Jenkins Reviewed-by: Noel Grandin --- vcl/source/control/prgsbar.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/source/control/prgsbar.cxx') diff --git a/vcl/source/control/prgsbar.cxx b/vcl/source/control/prgsbar.cxx index 519353a6a777..ac21e7c98ca3 100644 --- a/vcl/source/control/prgsbar.cxx +++ b/vcl/source/control/prgsbar.cxx @@ -125,7 +125,7 @@ void ProgressBar::ImplDrawProgress(vcl::RenderContext& rRenderContext, sal_uInt1 Size aSize(GetOutputSizePixel()); mnPrgsHeight = aSize.Height() - (PROGRESSBAR_WIN_OFFSET * 2); mnPrgsWidth = (mnPrgsHeight * 2) / 3; - maPos.Y() = PROGRESSBAR_WIN_OFFSET; + maPos.setY( PROGRESSBAR_WIN_OFFSET ); long nMaxWidth = (aSize.Width() - (PROGRESSBAR_WIN_OFFSET * 2) + PROGRESSBAR_OFFSET); sal_uInt16 nMaxCount = static_cast(nMaxWidth / (mnPrgsWidth+PROGRESSBAR_OFFSET)); if (nMaxCount <= 1) @@ -141,7 +141,7 @@ void ProgressBar::ImplDrawProgress(vcl::RenderContext& rRenderContext, sal_uInt1 } mnPercentCount = 10000 / nMaxCount; nMaxWidth = ((10000 / (10000 / nMaxCount)) * (mnPrgsWidth + PROGRESSBAR_OFFSET)) - PROGRESSBAR_OFFSET; - maPos.X() = (aSize.Width() - nMaxWidth) / 2; + maPos.setX( (aSize.Width() - nMaxWidth) / 2 ); } ::DrawProgress(this, rRenderContext, maPos, PROGRESSBAR_OFFSET, mnPrgsWidth, mnPrgsHeight, -- cgit