xmlsecurity/source/helper/xsecctl.cxx | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
New commits: commit 4acd9056df7a12a65e82ffe3b2b4e12e55aac1f1 Author: Jan Luethi <[email protected]> AuthorDate: Fri Feb 27 18:48:19 2026 +0100 Commit: David Gilbert <[email protected]> CommitDate: Sun Mar 1 18:21:24 2026 +0100 tdf#145538 Use range based for loops in xsecctl.cxx Change-Id: I04eec9ca3f413b3b3415053a48121c7bfc0b35a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/200641 Tested-by: Jenkins Reviewed-by: David Gilbert <[email protected]> diff --git a/xmlsecurity/source/helper/xsecctl.cxx b/xmlsecurity/source/helper/xsecctl.cxx index ed22b25e0257..99f8fde4fe4e 100644 --- a/xmlsecurity/source/helper/xsecctl.cxx +++ b/xmlsecurity/source/helper/xsecctl.cxx @@ -626,13 +626,8 @@ void XSecController::exportSignature( xDocumentHandler->endElement( u"SignatureMethod"_ustr ); /* Write Reference element */ - int j; - int refNum = vReferenceInfors.size(); - - for(j=0; j<refNum; ++j) + for(const auto& refInfor: vReferenceInfors) { - const SignatureReferenceInformation& refInfor = vReferenceInfors[j]; - pAttributeList = new comphelper::AttributeList(); if ( refInfor.nType != SignatureReferenceType::SAMEDOCUMENT ) /*
