diff options
author | Neil <nyamatongwe@gmail.com> | 2020-07-16 08:04:11 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-07-16 08:04:11 +1000 |
commit | 9f1fb22f074a8b7d5c97f8a8c5894927f5bb01d1 (patch) | |
tree | ecf1814eba064c5c8fbfefab21fd6226315f941f /src/Document.cxx | |
parent | 5a72039e1a39c200b50f134e4917d216ea68fb48 (diff) | |
download | scintilla-mirror-9f1fb22f074a8b7d5c97f8a8c5894927f5bb01d1.tar.gz |
Make EncodingFamily an enum class for more type safety.
Diffstat (limited to 'src/Document.cxx')
-rw-r--r-- | src/Document.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index 07ed604fd..8d250b9ab 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1175,11 +1175,11 @@ int Document::SafeSegment(const char *text, int length, int lengthSegment) const EncodingFamily Document::CodePageFamily() const noexcept { if (SC_CP_UTF8 == dbcsCodePage) - return efUnicode; + return EncodingFamily::unicode; else if (dbcsCodePage) - return efDBCS; + return EncodingFamily::dbcs; else - return efEightBit; + return EncodingFamily::eightBit; } void Document::ModifiedAt(Sci::Position pos) noexcept { |