summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-11-21 13:51:32 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-11-22 07:34:59 +0100
commit58bc1cba20c48f518eded86f10a73ebf42ce8bd4 (patch)
treeac745686af4c0fe7a41a82c885cfe05eb0043d82 /vcl/source/gdi
parentfe39cd0df3e1c9e1e4ea71b3759371cbcca944dd (diff)
convert LineType to scoped enum
and remove unused LINE_HORIZONTAL Change-Id: I39ee05b444b4da46758ff30176e041a02bee54e8 Reviewed-on: https://gerrit.libreoffice.org/63740 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/region.cxx2
-rw-r--r--vcl/source/gdi/regionband.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/gdi/region.cxx b/vcl/source/gdi/region.cxx
index ce2d60ba7d66..b363cd019b40 100644
--- a/vcl/source/gdi/region.cxx
+++ b/vcl/source/gdi/region.cxx
@@ -128,7 +128,7 @@ namespace
// in other places (but seems to be the wrong way.)
const long nTop (::std::min(aStart.Y(), aEnd.Y()));
const long nBottom (::std::max(aStart.Y(), aEnd.Y()));
- const LineType eLineType (aStart.Y() > aEnd.Y() ? LINE_DESCENDING : LINE_ASCENDING);
+ const LineType eLineType (aStart.Y() > aEnd.Y() ? LineType::Descending : LineType::Ascending);
// Make sure that the current line is covered by bands.
pRegionBand->ImplAddMissingBands(nTop,nBottom);
diff --git a/vcl/source/gdi/regionband.cxx b/vcl/source/gdi/regionband.cxx
index 549979862e01..0b7f13b4323c 100644
--- a/vcl/source/gdi/regionband.cxx
+++ b/vcl/source/gdi/regionband.cxx
@@ -445,7 +445,7 @@ void RegionBand::InsertLine(const Point& rStartPt, const Point& rEndPt, long nLi
return;
}
- LineType eLineType = (rStartPt.Y() > rEndPt.Y()) ? LINE_DESCENDING : LINE_ASCENDING;
+ LineType eLineType = (rStartPt.Y() > rEndPt.Y()) ? LineType::Descending : LineType::Ascending;
if ( rStartPt.X() == rEndPt.X() )
{
// vertical line