diff options
Diffstat (limited to 'xmlsecurity/source/helper/documentsignaturehelper.cxx')
-rw-r--r-- | xmlsecurity/source/helper/documentsignaturehelper.cxx | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/xmlsecurity/source/helper/documentsignaturehelper.cxx b/xmlsecurity/source/helper/documentsignaturehelper.cxx index 8bb06b84e92a..c6ee555e0068 100644 --- a/xmlsecurity/source/helper/documentsignaturehelper.cxx +++ b/xmlsecurity/source/helper/documentsignaturehelper.cxx @@ -142,9 +142,8 @@ bool DocumentSignatureHelper::isODFPre_1_2(const OUString & sVersion) bool DocumentSignatureHelper::isOOo3_2_Signature(const SignatureInformation & sigInfo) { bool bOOo3_2 = false; - typedef ::std::vector< SignatureReferenceInformation >::const_iterator CIT; - for (CIT i = sigInfo.vSignatureReferenceInfors.begin(); - i < sigInfo.vSignatureReferenceInfors.end(); ++i) + for (auto i = sigInfo.vSignatureReferenceInfors.cbegin(); + i < sigInfo.vSignatureReferenceInfors.cend(); ++i) { if (i->ouURI == "META-INF/manifest.xml") { @@ -450,8 +449,7 @@ bool DocumentSignatureHelper::checkIfAllFilesAreSigned( } //find the file in the element list - typedef ::std::vector< OUString >::const_iterator CIT; - for (CIT aIter = sElementList.begin(); aIter != sElementList.end(); ++aIter) + for (auto aIter = sElementList.cbegin(); aIter != sElementList.cend(); ++aIter) { OUString sElementListURI = *aIter; if (alg == DocumentSignatureAlgorithm::OOo2) @@ -503,9 +501,8 @@ bool DocumentSignatureHelper::equalsReferenceUriManifestPath( if (vUriSegments.size() == vPathSegments.size()) { retVal = true; - typedef std::vector<OUString>::const_iterator CIT; - for (CIT i = vUriSegments.begin(), j = vPathSegments.begin(); - i != vUriSegments.end(); ++i, ++j) + for (auto i = vUriSegments.cbegin(), j = vPathSegments.cbegin(); + i != vUriSegments.cend(); ++i, ++j) { //Decode the uri segment, so that %20 becomes ' ', etc. OUString sDecUri = ::rtl::Uri::decode( |