summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-11-25 09:45:24 +0100
committerStephan Bergmann <sbergman@redhat.com>2020-11-25 10:53:58 +0100
commit5e4c771c0b89452ab55d1ab30dbb1634f15d3775 (patch)
treee21c00fa417d96f64edf8d897c50b41f86b42a64 /xmlsecurity
parente8227dc4af54c39e871b12f2e846fa54cff11581 (diff)
loplugin:stringviewparam (clang-cl)
Change-Id: Id93a1c48cd0cc1aa8370498ce239035fc5c01730 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106570 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/xmlsec/mscrypt/x509certificate_mscryptimpl.cxx5
1 files changed, 3 insertions, 2 deletions
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)
{