[Libreoffice-commits] core.git: sal/osl

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Apr 28 06:37:26 UTC 2021


 sal/osl/w32/file_url.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit c0aede431fd641ea9b92aa145db69a6d45c5bf9c
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Apr 27 08:40:07 2021 +0200
Commit:     Stephan Bergmann <sbergman at 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 <sbergman at 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 */
 


More information about the Libreoffice-commits mailing list