aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 7a61d503a..9aba5ccd2 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -29,7 +29,6 @@
#include "ILexer.h"
#include "Scintilla.h"
-#include "StringCopy.h"
#include "CharacterSet.h"
#include "Position.h"
#include "UniqueString.h"
@@ -1957,7 +1956,7 @@ void Editor::AddCharUTF(const char *s, unsigned int len, bool treatAsDBCS) {
// characters representing themselves.
} else {
unsigned int utf32[1] = { 0 };
- UTF32FromUTF8(std::string_view(s, len), utf32, ELEMENTS(utf32));
+ UTF32FromUTF8(std::string_view(s, len), utf32, std::size(utf32));
byte = utf32[0];
}
NotifyChar(byte);