diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-28 16:12:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-29 09:10:50 +0200 |
commit | a08468c1a5255d3fb04cd8a0dc627acdea40426a (patch) | |
tree | a14a625108947e3f9b3be73772c80ac31ab3fd7a /xmlsecurity/inc | |
parent | c74d97f1218a3592226a4fae4d4c1941dabe4f7a (diff) |
use more string_view in xmlsecurity
Change-Id: I245961d0116a7a72f8506cfc0b009990e35c6796
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140710
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r-- | xmlsecurity/inc/documentsignaturehelper.hxx | 6 | ||||
-rw-r--r-- | xmlsecurity/inc/xmlsignaturehelper.hxx | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xmlsecurity/inc/documentsignaturehelper.hxx b/xmlsecurity/inc/documentsignaturehelper.hxx index b18ccf103e20..eb50b3761423 100644 --- a/xmlsecurity/inc/documentsignaturehelper.hxx +++ b/xmlsecurity/inc/documentsignaturehelper.hxx @@ -70,14 +70,14 @@ namespace DocumentSignatureHelper DocumentSignatureMode eMode, const DocumentSignatureAlgorithm mode); - bool isODFPre_1_2(const OUString & sODFVersion); + bool isODFPre_1_2(std::u16string_view sODFVersion); bool isOOo3_2_Signature(const SignatureInformation & sigInfo); DocumentSignatureAlgorithm getDocumentAlgorithm( - const OUString & sODFVersion, const SignatureInformation & sigInfo); + std::u16string_view sODFVersion, const SignatureInformation & sigInfo); bool CanSignWithGPG(const css::uno::Reference < css::embed::XStorage >& rxStore, - const OUString& sOdfVersion); + std::u16string_view sOdfVersion); bool checkIfAllFilesAreSigned( const ::std::vector< OUString > & sElementList, const SignatureInformation & sigInfo, const DocumentSignatureAlgorithm alg); diff --git a/xmlsecurity/inc/xmlsignaturehelper.hxx b/xmlsecurity/inc/xmlsignaturehelper.hxx index de7de9908205..d6e2b90eebac 100644 --- a/xmlsecurity/inc/xmlsignaturehelper.hxx +++ b/xmlsecurity/inc/xmlsignaturehelper.hxx @@ -83,7 +83,7 @@ public: // Set the storage which should be used by the default UriBinding // Must be set before StartMission(). //sODFVersion indicates the ODF version - void SetStorage( const css::uno::Reference < css::embed::XStorage >& rxStorage, const OUString& sODFVersion ); + void SetStorage( const css::uno::Reference < css::embed::XStorage >& rxStorage, std::u16string_view sODFVersion ); // Argument for the Link is a uno::Reference< xml::sax::XAttributeList >* // Return 1 to verify, 0 to skip. |