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 | f75ba31174a71b506182c7d29d31fc2c4a29ebbd (patch) | |
tree | 3283c23855db9814c441680fe27f4fba5541dbb9 /src/Editor.h | |
parent | 2cf005d9cfed0d1b5db6fdc9f4df24caf5c8b920 (diff) | |
download | scintilla-mirror-f75ba31174a71b506182c7d29d31fc2c4a29ebbd.tar.gz |
Make AddNumber an enum class for more type safety.
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 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; |