aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-19 10:40:48 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-19 10:40:48 +1100
commit25aca885085525118aec6fee7c1ff49442d90582 (patch)
tree8bcc546855b4f80a92bd9b7f9912c5b907310c26 /src/PositionCache.h
parent4c086ac7bebe13bcd2146f4e2cebc40510a7223c (diff)
downloadscintilla-mirror-25aca885085525118aec6fee7c1ff49442d90582.tar.gz
Switch enum to enum class.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r--src/PositionCache.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h
index 8968092e7..0fb51dc38 100644
--- a/src/PositionCache.h
+++ b/src/PositionCache.h
@@ -38,10 +38,11 @@ public:
// There are two points for some positions and this enumeration
// can choose between the end of the first line or subline
// and the start of the next line or subline.
-enum PointEnd {
- peDefault = 0x0,
- peLineEnd = 0x1,
- peSubLineEnd = 0x2
+enum class PointEnd {
+ start = 0x0,
+ lineEnd = 0x1,
+ subLineEnd = 0x2,
+ endEither = lineEnd | subLineEnd,
};
class BidiData {