summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-04-27 08:40:07 +0200
committerStephan Bergmann <sbergman@redhat.com>2021-04-28 08:36:43 +0200
commitc0aede431fd641ea9b92aa145db69a6d45c5bf9c (patch)
tree3dc5975f47ee79fe962a062338128879be1e354c /sal
parentd524f5b28e2b9bcf7ab681eb6ad93a4da3f5663d (diff)
loplugin:stringviewparam (clang-cl)
Change-Id: I3cf85911785f2c03255869f505e5b86ad2fd9c74 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114690 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/file_url.cxx3
1 files changed, 2 insertions, 1 deletions
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 */