sal/osl/w32/file_url.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit c0aede431fd641ea9b92aa145db69a6d45c5bf9c Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Tue Apr 27 08:40:07 2021 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Wed Apr 28 08:36:43 2021 +0200 loplugin:stringviewparam (clang-cl) Change-Id: I3cf85911785f2c03255869f505e5b86ad2fd9c74 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114690 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sal/osl/w32/file_url.cxx b/sal/osl/w32/file_url.cxx index 2e9bbc013233..a8d1644b7daa 100644 --- a/sal/osl/w32/file_url.cxx +++ b/sal/osl/w32/file_url.cxx @@ -23,6 +23,7 @@ #include <algorithm> #include <optional> #include <stack> +#include <string_view> #include <systools/win32/uwinapi.h> @@ -723,7 +724,7 @@ static std::optional<OUString> osl_decodeURL_(const OString& sUTF8) : std::optional<OUString>(); } -static OUString osl_encodeURL_(const OUString& sURL) +static OUString osl_encodeURL_(std::u16string_view sURL) { /* Encode non ascii characters within the URL */ _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits