diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-14 15:24:16 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-14 15:24:16 +1000 |
commit | 5b869b233d5f927f03dc9a70a7006c7dcbf5c88e (patch) | |
tree | cbdab8a8f954763c72b6710be80fa6bd985ed5d4 /src/Editor.cxx | |
parent | cebd3113ce6b1e4dbc98f458c6033fd41e29d69d (diff) | |
download | scintilla-mirror-5b869b233d5f927f03dc9a70a7006c7dcbf5c88e.tar.gz |
Use string_view for UniConversion functions.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 36ebc5cea..7a61d503a 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1957,7 +1957,7 @@ void Editor::AddCharUTF(const char *s, unsigned int len, bool treatAsDBCS) { // characters representing themselves. } else { unsigned int utf32[1] = { 0 }; - UTF32FromUTF8(s, len, utf32, ELEMENTS(utf32)); + UTF32FromUTF8(std::string_view(s, len), utf32, ELEMENTS(utf32)); byte = utf32[0]; } NotifyChar(byte); |