diff options
| author | Neil <nyamatongwe@gmail.com> | 2020-07-16 09:01:54 +1000 |
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2020-07-16 09:01:54 +1000 |
| commit | 79a9cd4d05fcc71fcdb01eda70e53abc7195213d (patch) | |
| tree | fa5d4b9976f8db3b35932bd4b7d68f2e209fc0ae /src/Editor.h | |
| parent | e84de8f62b4ff4ef35dda9d162855d4b3e27a767 (diff) | |
| download | scintilla-mirror-79a9cd4d05fcc71fcdb01eda70e53abc7195213d.tar.gz | |
Backport: Make AddNumber an enum class for more type safety.
Backport of changeset 8410:84c7d7b3c0b8.
Diffstat (limited to 'src/Editor.h')
| -rw-r--r-- | src/Editor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.h b/src/Editor.h index 62aac3553..cf77c8d78 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; |
