summaryrefslogtreecommitdiff
path: root/cui/source/dialogs
diff options
context:
space:
mode:
authorRosen <rosen@live.com>2016-09-24 11:11:27 +0530
committerjan iversen <jani@documentfoundation.org>2016-09-25 07:14:33 +0000
commitdad35b0463a16d3d6eca068100e95822ae466a9a (patch)
tree223fec372f26e33fccdc745864d392f65aa3cbaf /cui/source/dialogs
parent7b8832ff972a4e9f3e03fd7d96882b2a78c03b3e (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/dialogs')
-rw-r--r--cui/source/dialogs/colorpicker.cxx14
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;