xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit 5e4c771c0b89452ab55d1ab30dbb1634f15d3775
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Wed Nov 25 09:45:24 2020 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Wed Nov 25 10:53:58 2020 +0100

    loplugin:stringviewparam (clang-cl)
    
    Change-Id: Id93a1c48cd0cc1aa8370498ce239035fc5c01730
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106570
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx 
b/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
index de00d18a1930..1672a21c7868 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx
@@ -36,6 +36,7 @@
 #include <o3tl/char16_t2wchar_t.hxx>
 
 #include <memory>
+#include <string_view>
 #include <utility>
 #include <vector>
 #include <tools/time.hxx>
@@ -56,7 +57,7 @@ using ::com::sun::star::util::DateTime ;
     If the type name is not found then pair.first and pair.second are -1.
 */
 static std::pair< sal_Int32, sal_Int32 >
-findTypeInDN(const OUString& rRawString, const OUString& sTypeName)
+findTypeInDN(const OUString& rRawString, std::u16string_view sTypeName)
 {
     std::pair< sal_Int32, sal_Int32 > retVal;
     bool bInEscape = false;
@@ -160,7 +161,7 @@ findTypeInDN(const OUString& rRawString, const OUString& 
sTypeName)
 
 static OUString replaceTagSWithTagST(OUString const & oldDN)
 {
-    std::pair<sal_Int32, sal_Int32 > pairIndex = findTypeInDN(oldDN, "S");
+    std::pair<sal_Int32, sal_Int32 > pairIndex = findTypeInDN(oldDN, u"S");
 
     if (pairIndex.first != -1)
     {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to