From 79a9cd4d05fcc71fcdb01eda70e53abc7195213d Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 16 Jul 2020 09:01:54 +1000 Subject: Backport: Make AddNumber an enum class for more type safety. Backport of changeset 8410:84c7d7b3c0b8. --- 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 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; -- cgit v1.2.3