diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-22 10:01:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-03-27 08:22:09 +0200 |
commit | 862dc17e437f0972223e18555110dc875d2ffa44 (patch) | |
tree | 3b8e33815f337b262b7a42e01af64acae4912b0e /sdext | |
parent | 50af4bf5c67eaac39d02cfe20584906eec058235 (diff) |
loplugin:expressionalwayszero improvements
Change-Id: I00bdbc58d2295a0be30b47c85eae6b9abfec17b2
Reviewed-on: https://gerrit.libreoffice.org/51868
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sdext')
-rw-r--r-- | sdext/source/presenter/PresenterToolBar.cxx | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/sdext/source/presenter/PresenterToolBar.cxx b/sdext/source/presenter/PresenterToolBar.cxx index e01fdf096887..c9070fd6f3db 100644 --- a/sdext/source/presenter/PresenterToolBar.cxx +++ b/sdext/source/presenter/PresenterToolBar.cxx @@ -57,8 +57,6 @@ using namespace ::com::sun::star::drawing::framework; namespace sdext { namespace presenter { static const sal_Int32 gnGapSize (20); -static const sal_Int32 gnMinimalSeparatorSize (20); -static const sal_Int32 gnSeparatorInset (0); namespace { @@ -1902,11 +1900,6 @@ void VerticalSeparator::Paint ( PresenterCanvasHelper::SetDeviceColor(aRenderState, pFont->mnColor); } - if (aBBox.Height >= gnMinimalSeparatorSize + 2*gnSeparatorInset) - { - aBBox.Height -= 2*gnSeparatorInset; - aBBox.Y += gnSeparatorInset; - } rxCanvas->fillPolyPolygon( PresenterGeometryHelper::CreatePolygon(aBBox, rxCanvas->getDevice()), rViewState, @@ -1952,11 +1945,6 @@ void HorizontalSeparator::Paint ( PresenterCanvasHelper::SetDeviceColor(aRenderState, pFont->mnColor); } - if (aBBox.Width >= gnMinimalSeparatorSize+2*gnSeparatorInset) - { - aBBox.Width -= 2*gnSeparatorInset; - aBBox.X += gnSeparatorInset; - } rxCanvas->fillPolyPolygon( PresenterGeometryHelper::CreatePolygon(aBBox, rxCanvas->getDevice()), rViewState, |