diff options
author | Neil <nyamatongwe@gmail.com> | 2021-03-19 10:40:48 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-03-19 10:40:48 +1100 |
commit | 25aca885085525118aec6fee7c1ff49442d90582 (patch) | |
tree | 8bcc546855b4f80a92bd9b7f9912c5b907310c26 /src/Selection.cxx | |
parent | 4c086ac7bebe13bcd2146f4e2cebc40510a7223c (diff) | |
download | scintilla-mirror-25aca885085525118aec6fee7c1ff49442d90582.tar.gz |
Switch enum to enum class.
Diffstat (limited to 'src/Selection.cxx')
-rw-r--r-- | src/Selection.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Selection.cxx b/src/Selection.cxx index cc92ff49b..7f2361f08 100644 --- a/src/Selection.cxx +++ b/src/Selection.cxx @@ -192,7 +192,7 @@ void SelectionRange::MinimizeVirtualSpace() noexcept { } } -Selection::Selection() : mainRange(0), moveExtends(false), tentativeMain(false), selType(selStream) { +Selection::Selection() : mainRange(0), moveExtends(false), tentativeMain(false), selType(SelTypes::stream) { AddSelection(SelectionRange(SelectionPosition(0))); } @@ -200,7 +200,7 @@ Selection::~Selection() { } bool Selection::IsRectangular() const noexcept { - return (selType == selRectangle) || (selType == selThin); + return (selType == SelTypes::rectangle) || (selType == SelTypes::thin); } Sci::Position Selection::MainCaret() const noexcept { @@ -312,7 +312,7 @@ void Selection::MovePositions(bool insertion, Sci::Position startChange, Sci::Po for (SelectionRange &range : ranges) { range.MoveForInsertDelete(insertion, startChange, length); } - if (selType == selRectangle) { + if (selType == SelTypes::rectangle) { rangeRectangular.MoveForInsertDelete(insertion, startChange, length); } } @@ -423,7 +423,7 @@ void Selection::Clear() { ranges.clear(); ranges.emplace_back(); mainRange = ranges.size() - 1; - selType = selStream; + selType = SelTypes::stream; moveExtends = false; ranges[mainRange].Reset(); rangeRectangular.Reset(); |