summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-25 14:56:44 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-01-28 07:31:50 +0100
commit5ab1b4f97032e4b1f1f0c080311f3a393ce89585 (patch)
treed9b434e582edd604ea75672f05738e1fd91bce93 /vcl
parent6e641f93e837a33c8d4364fdbd88b3d4c52de20c (diff)
make RECT_EMPTY purely an implementation detail
and make outside code use the IsEmpty/SetEmpty methods Change-Id: I4821d1bdceb99bb6a837a85ff2131003f9a160a5 Reviewed-on: https://gerrit.libreoffice.org/48584 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/scrbar.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/source/control/scrbar.cxx b/vcl/source/control/scrbar.cxx
index 2695f6da714b..56a23f2c9cc2 100644
--- a/vcl/source/control/scrbar.cxx
+++ b/vcl/source/control/scrbar.cxx
@@ -131,11 +131,11 @@ void ScrollBar::ImplUpdateRects( bool bUpdate )
maThumbRect.Left() = maTrackRect.Left()+mnThumbPixPos;
maThumbRect.Right() = maThumbRect.Left()+mnThumbPixSize-1;
if ( !mnThumbPixPos )
- maPage1Rect.Right() = RECT_EMPTY;
+ maPage1Rect.SetWidthEmpty();
else
maPage1Rect.Right() = maThumbRect.Left()-1;
if ( mnThumbPixPos >= (mnThumbPixRange-mnThumbPixSize) )
- maPage2Rect.Right() = RECT_EMPTY;
+ maPage2Rect.SetWidthEmpty();
else
{
maPage2Rect.Left() = maThumbRect.Right()+1;
@@ -147,11 +147,11 @@ void ScrollBar::ImplUpdateRects( bool bUpdate )
maThumbRect.Top() = maTrackRect.Top()+mnThumbPixPos;
maThumbRect.Bottom() = maThumbRect.Top()+mnThumbPixSize-1;
if ( !mnThumbPixPos )
- maPage1Rect.Bottom() = RECT_EMPTY;
+ maPage1Rect.SetHeightEmpty();
else
maPage1Rect.Bottom() = maThumbRect.Top()-1;
if ( mnThumbPixPos >= (mnThumbPixRange-mnThumbPixSize) )
- maPage2Rect.Bottom() = RECT_EMPTY;
+ maPage2Rect.SetHeightEmpty();
else
{
maPage2Rect.Top() = maThumbRect.Bottom()+1;