aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Editor.cxx6
-rw-r--r--src/Editor.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index c6fa503e2..9b5fa9d6f 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -779,7 +779,7 @@ void Editor::MultipleSelectAdd(AddNumber addNumber) {
ContainerNeedsUpdate(SC_UPDATE_SELECTION);
ScrollRange(sel.RangeMain());
Redraw();
- if (addNumber == addOne)
+ if (addNumber == AddNumber::one)
return;
searchStart = pos + lengthFound;
} else {
@@ -8343,11 +8343,11 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
break;
case SCI_MULTIPLESELECTADDNEXT:
- MultipleSelectAdd(addOne);
+ MultipleSelectAdd(AddNumber::one);
break;
case SCI_MULTIPLESELECTADDEACH:
- MultipleSelectAdd(addEach);
+ MultipleSelectAdd(AddNumber::each);
break;
case SCI_CHANGELEXERSTATE:
diff --git a/src/Editor.h b/src/Editor.h
index 8c875a49c..9a86d12e1 100644
--- a/src/Editor.h
+++ b/src/Editor.h
@@ -326,7 +326,7 @@ protected: // ScintillaBase subclass needs access to much of Editor
void SetSelection(int currentPos_);
void SetEmptySelection(SelectionPosition currentPos_);
void SetEmptySelection(Sci::Position currentPos_);
- enum AddNumber { addOne, addEach };
+ enum class AddNumber { one, each };
void MultipleSelectAdd(AddNumber addNumber);
bool RangeContainsProtected(Sci::Position start, Sci::Position end) const noexcept;
bool SelectionContainsProtected() const;