From 14a04aaf6e26f42b00778308b1450c5f1ef5fbd9 Mon Sep 17 00:00:00 2001 From: Rye Mutt <rye@alchemyviewer.org> Date: Tue, 4 Jun 2024 08:10:31 -0400 Subject: [PATCH] Small opt --- indra/llcommon/llstring.cpp | 2 +- indra/llcommon/llstring.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/llcommon/llstring.cpp b/indra/llcommon/llstring.cpp index a2f3cd42491..298b727496c 100644 --- a/indra/llcommon/llstring.cpp +++ b/indra/llcommon/llstring.cpp @@ -716,7 +716,7 @@ std::string utf8str_removeCRLF(const std::string& utf8str) return out; } -llwchar utf8str_to_wchar(const std::string& utf8str, size_t offset, size_t length) +llwchar utf8str_to_wchar(std::string_view utf8str, size_t offset, size_t length) { switch (length) { diff --git a/indra/llcommon/llstring.h b/indra/llcommon/llstring.h index 3d72baa880b..460b9dd9199 100644 --- a/indra/llcommon/llstring.h +++ b/indra/llcommon/llstring.h @@ -777,7 +777,7 @@ LL_COMMON_API std::string mbcsstring_makeASCII(const std::string& str); LL_COMMON_API std::string utf8str_removeCRLF(const std::string& utf8str); -LL_COMMON_API llwchar utf8str_to_wchar(const std::string& utf8str, size_t offset, size_t length); +LL_COMMON_API llwchar utf8str_to_wchar(std::string_view utf8str, size_t offset, size_t length); LL_COMMON_API std::string utf8str_showBytesUTF8(const std::string& utf8str); -- GitLab