From e84de8f62b4ff4ef35dda9d162855d4b3e27a767 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 16 Jul 2020 08:56:28 +1000 Subject: Backport: Use enum class for selectionUnit (previously selectionType) for more type safety. Backport of changeset 8409:74950c91ef69. --- 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 4f629bad4..62aac3553 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