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/menubarwindow.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/menubarwindow.cxx')
-rw-r--r-- | vcl/source/window/menubarwindow.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/window/menubarwindow.cxx b/vcl/source/window/menubarwindow.cxx index 99e8719c79d1..56b1ad8fd6eb 100644 --- a/vcl/source/window/menubarwindow.cxx +++ b/vcl/source/window/menubarwindow.cxx @@ -300,7 +300,7 @@ void MenuBarWindow::ImplCreatePopup( bool bPreSelectFirst ) pData = pMenu->pItemList->GetDataFromPos( nHighlightedItem ); Point aItemTopLeft( nX, 0 ); Point aItemBottomRight( aItemTopLeft ); - aItemBottomRight.X() += pData->aSz.Width(); + aItemBottomRight.AdjustX(pData->aSz.Width() ); if (pData->bHiddenOnGUI) { @@ -330,7 +330,7 @@ void MenuBarWindow::ImplCreatePopup( bool bPreSelectFirst ) if ( GetSizePixel().Height() ) { // #107747# give menuitems the height of the menubar - aItemBottomRight.Y() += GetOutputSizePixel().Height()-1; + aItemBottomRight.AdjustY(GetOutputSizePixel().Height()-1 ); } // ImplExecute is not modal... @@ -617,7 +617,7 @@ void MenuBarWindow::HighlightItem(vcl::RenderContext& rRenderContext, sal_uInt16 size_t nCount = pMenu->pItemList->size(); Size aOutputSize = GetOutputSizePixel(); - aOutputSize.Width() -= aCloseBtn->GetSizePixel().Width(); + aOutputSize.AdjustWidth( -(aCloseBtn->GetSizePixel().Width()) ); for (size_t n = 0; n < nCount; n++) { @@ -931,7 +931,7 @@ void MenuBarWindow::Paint(vcl::RenderContext& rRenderContext, const tools::Recta } // shrink the area of the buttons - aOutputSize.Width() -= aCloseBtn->GetSizePixel().Width(); + aOutputSize.AdjustWidth( -(aCloseBtn->GetSizePixel().Width()) ); rRenderContext.SetFillColor(rStyleSettings.GetMenuColor()); pMenu->ImplPaint(rRenderContext, aOutputSize, 0); |