diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-15 13:12:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-05-15 18:03:51 +0200 |
commit | 6e267990695548db227c918679b907c60263cb81 (patch) | |
tree | 96bca33746fe1a26a348a35c74a1dee8977c349d /xmlsecurity/source/helper/documentsignaturemanager.cxx | |
parent | 11bfced0a4f1d5f3ccaf8e1c87c11733ca71f29d (diff) |
loplugin:ostr in xmlsecurity
Change-Id: Ifb936c230f68447b3bb5993705adb5e5b790371f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167668
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Diffstat (limited to 'xmlsecurity/source/helper/documentsignaturemanager.cxx')
-rw-r--r-- | xmlsecurity/source/helper/documentsignaturemanager.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/xmlsecurity/source/helper/documentsignaturemanager.cxx b/xmlsecurity/source/helper/documentsignaturemanager.cxx index 84d89ffeff72..620c85458afe 100644 --- a/xmlsecurity/source/helper/documentsignaturemanager.cxx +++ b/xmlsecurity/source/helper/documentsignaturemanager.cxx @@ -147,14 +147,15 @@ bool DocumentSignatureManager::readManifest() uno::Reference<packages::manifest::XManifestReader> xReader = packages::manifest::ManifestReader::create(mxContext); - if (mxStore->hasByName("META-INF")) + if (mxStore->hasByName(u"META-INF"_ustr)) { //Get the manifest.xml uno::Reference<embed::XStorage> xSubStore( - mxStore->openStorageElement("META-INF", embed::ElementModes::READ), UNO_SET_THROW); + mxStore->openStorageElement(u"META-INF"_ustr, embed::ElementModes::READ), + UNO_SET_THROW); uno::Reference<io::XInputStream> xStream( - xSubStore->openStreamElement("manifest.xml", css::embed::ElementModes::READ), + xSubStore->openStreamElement(u"manifest.xml"_ustr, css::embed::ElementModes::READ), UNO_QUERY_THROW); m_manifest = xReader->readManifestSequence(xStream); @@ -229,7 +230,7 @@ SignatureStreamHelper DocumentSignatureManager::ImplOpenSignatureStream(sal_Int3 bool bTempStream) { SignatureStreamHelper aHelper; - if (mxStore.is() && mxStore->hasByName("[Content_Types].xml")) + if (mxStore.is() && mxStore->hasByName(u"[Content_Types].xml"_ustr)) aHelper.nStorageFormat = embed::StorageFormats::OFOPXML; if (bTempStream) @@ -655,7 +656,7 @@ void DocumentSignatureManager::write(bool bXAdESCompliantIfODF) maSignatureHelper.EnsureSignaturesRelation(mxStore, /*bAdd=*/false); // Also remove the whole signature sub-storage: release our read-write reference + remove the element. aStreamHelper = SignatureStreamHelper(); - mxStore->removeElement("_xmlsignatures"); + mxStore->removeElement(u"_xmlsignatures"_ustr); } for (std::size_t i = 0; i < nSignatureCount; ++i) |