summaryrefslogtreecommitdiff
path: root/include/vcl/vclenum.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-02 08:36:23 +0200
committerNoel Grandin <noel@peralex.com>2016-09-05 08:21:46 +0200
commit65ca57a447bae97714b1b32aa2df5705215a95ad (patch)
tree9b62f8fb4a890d5fcba13abc446b3244e9c5232f /include/vcl/vclenum.hxx
parenta881fd7e66294ada222e1d618a7d47a0549a2342 (diff)
convert LineStyle to scoped enum
Change-Id: I30cfa5a0649b806604c443f55683d1f2a430983d
Diffstat (limited to 'include/vcl/vclenum.hxx')
-rw-r--r--include/vcl/vclenum.hxx15
1 files changed, 5 insertions, 10 deletions
diff --git a/include/vcl/vclenum.hxx b/include/vcl/vclenum.hxx
index 0934db7d539e..a6931b354d4e 100644
--- a/include/vcl/vclenum.hxx
+++ b/include/vcl/vclenum.hxx
@@ -58,17 +58,12 @@ enum HatchStyle
HatchStyle_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
};
-// to avoid conflicts with enum's declared otherwise
-#define LINE_NONE LineStyle_NONE
-#define LINE_SOLID LineStyle_SOLID
-#define LINE_DASH LineStyle_DASH
-
-enum LineStyle
+enum class LineStyle
{
- LINE_NONE = 0,
- LINE_SOLID = 1,
- LINE_DASH = 2,
- LineStyle_FORCE_EQUAL_SIZE = SAL_MAX_ENUM
+ NONE = 0,
+ Solid = 1,
+ Dash = 2,
+ FORCE_EQUAL_SIZE = SAL_MAX_ENUM
};
enum class RasterOp { OverPaint, Xor, N0, N1, Invert };