diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-20 11:03:20 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-02-21 06:04:19 +0100 |
commit | 924c0e34fdc36cd44100dafc2c68656ce32374e6 (patch) | |
tree | 05548e06d476b1244abb3ef83013514c7f991b3e /svx/source/form/filtnav.cxx | |
parent | fd20935bb819cb24e71f4f91b97149c35bc5987d (diff) |
loplugin:changetoolsgen in svx
and fix the regex in the plugin for matching += operator
Change-Id: I26b3e3fac1d4ef3e756cc9431b983b5f27ee76d6
Reviewed-on: https://gerrit.libreoffice.org/50037
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'svx/source/form/filtnav.cxx')
-rw-r--r-- | svx/source/form/filtnav.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx index 6ef160d87a0f..b5a0c9975a77 100644 --- a/svx/source/form/filtnav.cxx +++ b/svx/source/form/filtnav.cxx @@ -996,9 +996,9 @@ void FmFilterItemsString::Paint(const Point& rPos, SvTreeListBox& rDev, vcl::Ren rRenderContext.DrawLine(aFirst, aSecond); aFirst = aSecond; - aFirst.X() += 1; - aSecond.X() += 6; - aSecond.Y() -= 5; + aFirst.AdjustX(1 ); + aSecond.AdjustX(6 ); + aSecond.AdjustY( -5 ); rRenderContext.DrawLine(aFirst, aSecond); rRenderContext.Pop(); @@ -1014,7 +1014,7 @@ void FmFilterItemsString::InitViewData( SvTreeListBox* pView,SvTreeListEntry* pE pViewData = pView->GetViewDataItem( pEntry, this ); Size aSize(pView->GetTextWidth(GetText()), pView->GetTextHeight()); - aSize.Width() += nxDBmp; + aSize.AdjustWidth(nxDBmp ); pViewData->maSize = aSize; } @@ -1050,7 +1050,7 @@ void FmFilterString::InitViewData( SvTreeListBox* pView,SvTreeListEntry* pEntry, Size aSize(pView->GetTextWidth(m_aName), pView->GetTextHeight()); pView->Control::SetFont( aOldFont ); - aSize.Width() += pView->GetTextWidth(GetText()) + nxD; + aSize.AdjustWidth(pView->GetTextWidth(GetText()) + nxD ); pViewData->maSize = aSize; } @@ -1067,7 +1067,7 @@ void FmFilterString::Paint(const Point& rPos, SvTreeListBox& rDev, vcl::RenderCo rRenderContext.DrawText(aPos, m_aName); // position for the second text - aPos.X() += rDev.GetTextWidth(m_aName) + nxD; + aPos.AdjustX(rDev.GetTextWidth(m_aName) + nxD ); rRenderContext.Pop(); rDev.DrawText(aPos, GetText()); } @@ -1921,8 +1921,8 @@ void FmFilterNavigatorWin::Resize() Size aLogOutputSize = PixelToLogic(GetOutputSizePixel(), MapMode(MapUnit::MapAppFont)); Size aLogExplSize = aLogOutputSize; - aLogExplSize.Width() -= 6; - aLogExplSize.Height() -= 6; + aLogExplSize.AdjustWidth( -6 ); + aLogExplSize.AdjustHeight( -6 ); Point aExplPos = LogicToPixel(Point(3,3), MapMode(MapUnit::MapAppFont)); Size aExplSize = LogicToPixel(aLogExplSize, MapMode(MapUnit::MapAppFont)); |