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/tbxctrls/linectrl.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/tbxctrls/linectrl.cxx')
-rw-r--r-- | svx/source/tbxctrls/linectrl.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/svx/source/tbxctrls/linectrl.cxx b/svx/source/tbxctrls/linectrl.cxx index 4360b8155156..e7424b6af23c 100644 --- a/svx/source/tbxctrls/linectrl.cxx +++ b/svx/source/tbxctrls/linectrl.cxx @@ -379,7 +379,7 @@ void SvxLineEndWindow::FillValueSet() maBmpSize = aBmp.GetSizePixel(); pVD->SetOutputSizePixel( maBmpSize, false ); - maBmpSize.Width() = maBmpSize.Width() / 2; + maBmpSize.setWidth( maBmpSize.Width() / 2 ); Point aPt0( 0, 0 ); Point aPt1( maBmpSize.Width(), 0 ); @@ -438,12 +438,12 @@ void SvxLineEndWindow::SetSize() mpLineEndSet->SetStyle( nBits ); Size aSize( maBmpSize ); - aSize.Width() += 6; - aSize.Height() += 6; + aSize.AdjustWidth(6 ); + aSize.AdjustHeight(6 ); aSize = mpLineEndSet->CalcWindowSizePixel( aSize ); mpLineEndSet->SetPosSizePixel( Point( 2, 2 ), aSize ); - aSize.Width() += 4; - aSize.Height() += 4; + aSize.AdjustWidth(4 ); + aSize.AdjustHeight(4 ); SetOutputSizePixel( aSize ); } |