From 2cf005d9cfed0d1b5db6fdc9f4df24caf5c8b920 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 16 Jul 2020 08:56:28 +1000 Subject: Use enum class for selectionUnit (previously selectionType) for more type safety. --- src/Editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Editor.h') 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; -- cgit v1.2.3