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 <freedesktop@treblig.org>
This commit is contained in:
Jan Luethi
2026-03-01 18:21:24 +01:00
committed by David Gilbert
parent 50e337f1f1
commit 4acd9056df
+1 -6
View File
@@ -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 )
/*