From 5b869b233d5f927f03dc9a70a7006c7dcbf5c88e Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 14 May 2018 15:24:16 +1000 Subject: Use string_view for UniConversion functions. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Editor.cxx') 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); -- cgit v1.2.3