diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-11-30 11:48:50 +0100 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2018-12-01 18:32:30 +0100 |
commit | c0b2e7697d9647199d489a838d4fabc543264094 (patch) | |
tree | 84988a1326a4a2fd630151a81d53e3589531c4e2 | |
parent | 33c795b3d42e0c6e8ff2214838c8da35bfceddfb (diff) |
convert to range for
CODE-4.0-beta1
Change-Id: I3558010129eaafdab94ca3f8a63abeda32318fbb
Reviewed-on: https://gerrit.libreoffice.org/64336
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
(cherry picked from commit bb8c2b1cbf7a9eb56b1515f60a2aadbef24199a2)
-rw-r--r-- | xmlsecurity/source/helper/documentsignaturemanager.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xmlsecurity/source/helper/documentsignaturemanager.cxx b/xmlsecurity/source/helper/documentsignaturemanager.cxx index 218360d2f60c..c65b73c3b85d 100644 --- a/xmlsecurity/source/helper/documentsignaturemanager.cxx +++ b/xmlsecurity/source/helper/documentsignaturemanager.cxx @@ -355,11 +355,10 @@ bool DocumentSignatureManager::add(const uno::Reference<security::XCertificate>& std::vector< OUString > aElements = DocumentSignatureHelper::CreateElementList(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, Date(Date::SYSTEM), tools::Time(tools::Time::SYSTEM)); |