summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-11-30 11:48:50 +0100
committerTomaž Vajngerl <quikee@gmail.com>2018-12-01 09:08:07 +0100
commitbb8c2b1cbf7a9eb56b1515f60a2aadbef24199a2 (patch)
tree14d68ee2a55d0e33c593651816b374b6c2fbe099 /xmlsecurity
parent07e586574d5f0255ade1fe4305d56730dd7ae4c7 (diff)
convert to range for
Change-Id: I3558010129eaafdab94ca3f8a63abeda32318fbb Reviewed-on: https://gerrit.libreoffice.org/64336 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/helper/documentsignaturemanager.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/xmlsecurity/source/helper/documentsignaturemanager.cxx b/xmlsecurity/source/helper/documentsignaturemanager.cxx
index c247a40db917..2b3c0a8c9fc1 100644
--- a/xmlsecurity/source/helper/documentsignaturemanager.cxx
+++ b/xmlsecurity/source/helper/documentsignaturemanager.cxx
@@ -376,11 +376,10 @@ bool DocumentSignatureManager::add(
mxStore, meSignatureMode, DocumentSignatureAlgorithm::OOo3_2);
DocumentSignatureHelper::AppendContentTypes(mxStore, aElements);
- sal_Int32 nElements = aElements.size();
- for (sal_Int32 n = 0; n < nElements; n++)
+ for (OUString const& rUri : aElements)
{
- bool bBinaryMode = !isXML(aElements[n]);
- maSignatureHelper.AddForSigning(nSecurityId, aElements[n], bBinaryMode, bAdESCompliant);
+ bool bBinaryMode = !isXML(rUri);
+ maSignatureHelper.AddForSigning(nSecurityId, rUri, bBinaryMode, bAdESCompliant);
}
maSignatureHelper.SetDateTime(nSecurityId, DateTime(DateTime::SYSTEM));