xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx |    6 
+++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit fc3e2c8bba202a3ea3e92672f566d6ec16f18681
Author:     U-AMANDAQUARESMA\quare <quaresmaaman...@gmail.com>
AuthorDate: Thu May 23 16:14:49 2024 +0200
Commit:     Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
CommitDate: Thu May 23 19:25:13 2024 +0200

    tdf#145538 Use range based for loops
    
    Change-Id: Ib672cd1968de7bb99cd5f8737a09ce02b0490bf8
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167995
    Tested-by: Jenkins
    Tested-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org>

diff --git 
a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx 
b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
index 3c3cf3254969..a6258f92ad76 100644
--- a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
+++ b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.cxx
@@ -722,11 +722,11 @@ static HCERTSTORE getCertStoreForIntermediatCerts(
     if (store == nullptr)
         return nullptr;
 
-    for (int i = 0; i < seqCerts.getLength(); i++)
+    for (const auto& i : seqCerts)
     {
-        SAL_INFO("xmlsecurity.xmlsec", "Added temporary certificate: " << 
seqCerts[i]->getSubjectName());
+        SAL_INFO("xmlsecurity.xmlsec", "Added temporary certificate: " << 
i->getSubjectName());
 
-        uno::Sequence<sal_Int8> data = seqCerts[i]->getEncoded();
+        uno::Sequence<sal_Int8> data = i->getEncoded();
         PCCERT_CONTEXT cert = CertCreateCertificateContext(
             X509_ASN_ENCODING, reinterpret_cast<const BYTE*>(&data[0]), 
data.getLength());
         //Adding the certificate creates a copy and not just increases the ref 
count

Reply via email to