From 2c660b3e47671db7cfe0eff1ea71c337eb4cc34a Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 15 May 2018 08:47:44 +1000 Subject: Replace ELEMENTS with std::size and drop inclusion of StringCopy.h. --- src/Editor.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/Editor.cxx') 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); -- cgit v1.2.3