diff options
author | Rosen <rosen@live.com> | 2016-09-24 11:11:27 +0530 |
---|---|---|
committer | jan iversen <jani@documentfoundation.org> | 2016-09-25 07:14:33 +0000 |
commit | dad35b0463a16d3d6eca068100e95822ae466a9a (patch) | |
tree | 223fec372f26e33fccdc745864d392f65aa3cbaf /cui/source | |
parent | 7b8832ff972a4e9f3e03fd7d96882b2a78c03b3e (diff) |
tdf#96505 Get rid of cargo cult "long" integer literals
Change-Id: Ic1602a57d1662cb30b2339de9eeb6483fdfbef37
Reviewed-on: https://gerrit.libreoffice.org/29242
Reviewed-by: jan iversen <jani@documentfoundation.org>
Tested-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'cui/source')
-rw-r--r-- | cui/source/dialogs/colorpicker.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cui/source/dialogs/colorpicker.cxx b/cui/source/dialogs/colorpicker.cxx index c9161b7eb49d..05111e1d240f 100644 --- a/cui/source/dialogs/colorpicker.cxx +++ b/cui/source/dialogs/colorpicker.cxx @@ -441,15 +441,15 @@ void ColorFieldControl::ShowPosition( const Point& rPos, bool bUpdate ) long nX = rPos.X(); long nY = rPos.Y(); - if (nX < 0L) - nX = 0L; + if (nX < 0) + nX = 0; else if (nX >= aSize.Width()) - nX = aSize.Width() - 1L; + nX = aSize.Width() - 1; - if (nY < 0L) - nY = 0L; + if (nY < 0) + nY = 0; else if (nY >= aSize.Height()) - nY = aSize.Height() - 1L; + nY = aSize.Height() - 1; Point aPos = maPosition; maPosition.X() = nX - 5; @@ -765,7 +765,7 @@ void ColorSliderControl::ChangePosition(long nY) { const long nHeight = GetOutputSizePixel().Height() - 1; - if (nY < 0L) + if (nY < 0) nY = 0; else if (nY > nHeight) nY = nHeight; |