diff options
Diffstat (limited to 'xmlsecurity/source/helper')
-rw-r--r-- | xmlsecurity/source/helper/documentsignaturehelper.cxx | 4 | ||||
-rw-r--r-- | xmlsecurity/source/helper/documentsignaturemanager.cxx | 4 | ||||
-rw-r--r-- | xmlsecurity/source/helper/ooxmlsecexporter.cxx | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/xmlsecurity/source/helper/documentsignaturehelper.cxx b/xmlsecurity/source/helper/documentsignaturehelper.cxx index ee5fb4989ec1..c097b14a2180 100644 --- a/xmlsecurity/source/helper/documentsignaturehelper.cxx +++ b/xmlsecurity/source/helper/documentsignaturehelper.cxx @@ -86,7 +86,7 @@ static void ImplFillElementList( const OUString& rRootStorageName, const bool bRecursive, const DocumentSignatureAlgorithm mode) { - Sequence< OUString > aElements = rxStore->getElementNames(); + const Sequence< OUString > aElements = rxStore->getElementNames(); for ( const auto& rName : aElements ) { @@ -213,7 +213,7 @@ DocumentSignatureHelper::CreateElementList( xSubStore.clear(); // Object folders... - Sequence< OUString > aElementNames = rxStore->getElementNames(); + const Sequence< OUString > aElementNames = rxStore->getElementNames(); for ( const auto& rName : aElementNames ) { if ( ( rName.match( "Object " ) ) && rxStore->isStorageElement( rName ) ) diff --git a/xmlsecurity/source/helper/documentsignaturemanager.cxx b/xmlsecurity/source/helper/documentsignaturemanager.cxx index 557557f6bae8..19cdc2fb4d1d 100644 --- a/xmlsecurity/source/helper/documentsignaturemanager.cxx +++ b/xmlsecurity/source/helper/documentsignaturemanager.cxx @@ -177,7 +177,7 @@ bool DocumentSignatureManager::isXML(const OUString& rURI) if (readManifest()) { - for (const uno::Sequence<beans::PropertyValue>& entry : m_manifest) + for (const uno::Sequence<beans::PropertyValue>& entry : std::as_const(m_manifest)) { OUString sPath; OUString sMediaType; @@ -393,7 +393,7 @@ bool DocumentSignatureManager::add( eAlgorithmID); } - uno::Sequence<uno::Reference<security::XCertificate>> aCertPath + const uno::Sequence<uno::Reference<security::XCertificate>> aCertPath = xSecurityContext->getSecurityEnvironment()->buildCertificatePath(xCert); OUStringBuffer aStrBuffer; diff --git a/xmlsecurity/source/helper/ooxmlsecexporter.cxx b/xmlsecurity/source/helper/ooxmlsecexporter.cxx index 062c76d5c47b..cf87d6e1ad17 100644 --- a/xmlsecurity/source/helper/ooxmlsecexporter.cxx +++ b/xmlsecurity/source/helper/ooxmlsecexporter.cxx @@ -242,7 +242,7 @@ void OOXMLSecExporter::Impl::writeRelationshipTransform(const OUString& rURI) m_xDocumentHandler->startElement("Transform", uno::Reference<xml::sax::XAttributeList>(pAttributeList.get())); } - uno::Sequence< uno::Sequence<beans::StringPair> > aRelationsInfo = comphelper::OFOPXMLHelper::ReadRelationsInfoSequence(xRelStream, rURI, m_xComponentContext); + const uno::Sequence< uno::Sequence<beans::StringPair> > aRelationsInfo = comphelper::OFOPXMLHelper::ReadRelationsInfoSequence(xRelStream, rURI, m_xComponentContext); for (const uno::Sequence<beans::StringPair>& rPairs : aRelationsInfo) { OUString aId; |