diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-12-26 10:40:24 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-12-26 23:09:20 +0100 |
commit | 9c95415de877af1430ab5b7123e11dedd0ea622c (patch) | |
tree | 0a4bad23e32235523c9164a6094c0edea7f03f25 /xmlsecurity | |
parent | a23a7eea5cfcdc50d09be248828cb1e6293e5ebb (diff) |
Let comphelper::Base64::decode* take std::u16string_view
Change-Id: I5b04f7adf11c61f52b7bfb0f52c8c075f838f0f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127480
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/inc/xsecctl.hxx | 4 | ||||
-rw-r--r-- | xmlsecurity/source/helper/xsecverify.cxx | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/xmlsecurity/inc/xsecctl.hxx b/xmlsecurity/inc/xsecctl.hxx index 2d105c8690d2..adfd251b172e 100644 --- a/xmlsecurity/inc/xsecctl.hxx +++ b/xmlsecurity/inc/xsecctl.hxx @@ -277,8 +277,8 @@ private: void setDate(OUString const& rId, OUString const& ouDate); void setDescription(OUString const& rId, OUString const& rDescription); - void setValidSignatureImage(const OUString& rValidSigImg); - void setInvalidSignatureImage(const OUString& rInvalidSigImg); + void setValidSignatureImage(std::u16string_view rValidSigImg); + void setInvalidSignatureImage(std::u16string_view rInvalidSigImg); void setSignatureLineId(const OUString& rSignatureLineId); public: diff --git a/xmlsecurity/source/helper/xsecverify.cxx b/xmlsecurity/source/helper/xsecverify.cxx index 46f087801bd5..6c676dc3825a 100644 --- a/xmlsecurity/source/helper/xsecverify.cxx +++ b/xmlsecurity/source/helper/xsecverify.cxx @@ -473,7 +473,7 @@ void XSecController::setX509CertDigest( } namespace { -Reference<css::graphic::XGraphic> lcl_getGraphicFromString(const OUString& rImage) +Reference<css::graphic::XGraphic> lcl_getGraphicFromString(std::u16string_view rImage) { Sequence<sal_Int8> seq; comphelper::Base64::decode(seq, rImage); @@ -493,18 +493,18 @@ Reference<css::graphic::XGraphic> lcl_getGraphicFromString(const OUString& rImag } } -void XSecController::setValidSignatureImage(const OUString& rValidSigImg) +void XSecController::setValidSignatureImage(std::u16string_view rValidSigImg) { - if (m_vInternalSignatureInformations.empty() || rValidSigImg.isEmpty()) + if (m_vInternalSignatureInformations.empty() || rValidSigImg.empty()) return; InternalSignatureInformation& rInformation = m_vInternalSignatureInformations.back(); rInformation.signatureInfor.aValidSignatureImage = lcl_getGraphicFromString(rValidSigImg); } -void XSecController::setInvalidSignatureImage(const OUString& rInvalidSigImg) +void XSecController::setInvalidSignatureImage(std::u16string_view rInvalidSigImg) { - if (m_vInternalSignatureInformations.empty() || rInvalidSigImg.isEmpty()) + if (m_vInternalSignatureInformations.empty() || rInvalidSigImg.empty()) return; InternalSignatureInformation& rInformation = m_vInternalSignatureInformations.back(); |