diff options
author | Neil <nyamatongwe@gmail.com> | 2020-07-16 08:56:28 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-07-16 08:56:28 +1000 |
commit | 2cf005d9cfed0d1b5db6fdc9f4df24caf5c8b920 (patch) | |
tree | e68a436eab40a1183d28e02717f5368df9169150 /src/Editor.h | |
parent | 9f1fb22f074a8b7d5c97f8a8c5894927f5bb01d1 (diff) | |
download | scintilla-mirror-2cf005d9cfed0d1b5db6fdc9f4df24caf5c8b920.tar.gz |
Use enum class for selectionUnit (previously selectionType) 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 74137cd48..8c875a49c 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -210,7 +210,7 @@ protected: // ScintillaBase subclass needs access to much of Editor int dwellDelay; int ticksToDwell; bool dwelling; - enum { selChar, selWord, selSubLine, selWholeLine } selectionType; + enum class TextUnit { character, word, subLine, wholeLine } selectionUnit; Point ptMouseLast; enum { ddNone, ddInitial, ddDragging } inDragDrop; bool dropWentOutside; |