diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-21 15:56:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-22 20:18:57 +0100 |
commit | 4a8968039a2e1d9e7aee10433ced1f59c0392d7a (patch) | |
tree | 7074b5b4a94b5d509487872b8201bc5872dc107e /vcl/source/window/menufloatingwindow.cxx | |
parent | 1d7f96a324a4c2ab82a04513c6a38dc31fd061fa (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/menufloatingwindow.cxx')
-rw-r--r-- | vcl/source/window/menufloatingwindow.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/vcl/source/window/menufloatingwindow.cxx b/vcl/source/window/menufloatingwindow.cxx index b019906f3b0c..972300f8536e 100644 --- a/vcl/source/window/menufloatingwindow.cxx +++ b/vcl/source/window/menufloatingwindow.cxx @@ -175,8 +175,8 @@ vcl::Region MenuFloatingWindow::ImplCalcClipRegion() const Size aOutSz = GetOutputSizePixel(); Point aPos; tools::Rectangle aRect( aPos, aOutSz ); - aRect.Top() += nScrollerHeight; - aRect.Bottom() -= nScrollerHeight; + aRect.AdjustTop(nScrollerHeight ); + aRect.AdjustBottom( -(nScrollerHeight) ); vcl::Region aRegion(aRect); @@ -332,19 +332,19 @@ IMPL_LINK( MenuFloatingWindow, HighlightChanged, Timer*, pTimer, void ) Size MySize = GetOutputSizePixel(); Point aItemTopLeft( 0, nY ); Point aItemBottomRight( aItemTopLeft ); - aItemBottomRight.X() += MySize.Width(); - aItemBottomRight.Y() += pData->aSz.Height(); + aItemBottomRight.AdjustX(MySize.Width() ); + aItemBottomRight.AdjustY(pData->aSz.Height() ); // shift the popups a little - aItemTopLeft.X() += 2; - aItemBottomRight.X() -= 2; + aItemTopLeft.AdjustX(2 ); + aItemBottomRight.AdjustX( -2 ); if ( nHighlightedItem ) - aItemTopLeft.Y() -= 2; + aItemTopLeft.AdjustY( -2 ); else { sal_Int32 nL, nT, nR, nB; GetBorder( nL, nT, nR, nB ); - aItemTopLeft.Y() -= nT; + aItemTopLeft.AdjustY( -nT ); } // pTest: crash due to Reschedule() in call of Activate() @@ -827,7 +827,7 @@ void MenuFloatingWindow::RenderHighlightItem(vcl::RenderContext& rRenderContext, if (pData->nBits & MenuItemBits::POPUPSELECT) { long nFontHeight = GetTextHeight(); - aItemRect.Right() -= nFontHeight + nFontHeight / 4; + aItemRect.AdjustRight( -(nFontHeight + nFontHeight / 4) ); } if (rRenderContext.IsNativeControlSupported(ControlType::MenuPopup, ControlPart::Entire)) @@ -903,7 +903,7 @@ tools::Rectangle MenuFloatingWindow::ImplGetItemRect( sal_uInt16 nPos ) if ( pData->nBits & MenuItemBits::POPUPSELECT ) { long nFontHeight = GetTextHeight(); - aRect.Right() -= nFontHeight + nFontHeight/4; + aRect.AdjustRight( -(nFontHeight + nFontHeight/4) ); } } break; @@ -1182,7 +1182,7 @@ void MenuFloatingWindow::Paint(vcl::RenderContext& rRenderContext, const tools:: rRenderContext.SetClipRegion(); long nX = 0; Size aPxSize(GetOutputSizePixel()); - aPxSize.Width() -= nX; + aPxSize.AdjustWidth( -nX ); ImplControlValue aVal(pMenu->nTextPos - GUTTERBORDER); rRenderContext.DrawNativeControl(ControlType::MenuPopup, ControlPart::Entire, tools::Rectangle(Point(nX, 0), aPxSize), |