summaryrefslogtreecommitdiff
path: root/xmlsecurity
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-09-15 10:58:18 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-15 12:43:21 +0200
commit3a1a448ac4a04137705ea0aaf0163358fd2e5549 (patch)
tree0a7eeeebda959b1b8e7e1af99453c3f8b0541852 /xmlsecurity
parent88a6ac9f75a4375b72111af5a3e004bef4226455 (diff)
loplugin:constvars
Change-Id: I9b35d6333afa6b305bf73fc55a7e60c8365674e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122134 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity')
-rw-r--r--xmlsecurity/source/gpg/SecurityEnvironment.cxx2
-rw-r--r--xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/xmlsecurity/source/gpg/SecurityEnvironment.cxx b/xmlsecurity/source/gpg/SecurityEnvironment.cxx
index 941651aaf64b..b864700ec30d 100644
--- a/xmlsecurity/source/gpg/SecurityEnvironment.cxx
+++ b/xmlsecurity/source/gpg/SecurityEnvironment.cxx
@@ -139,7 +139,7 @@ Sequence< Reference < XCertificate > > SecurityEnvironmentGpg::getCertificatesIm
Sequence< Reference< XCertificate > > xCertificateSequence(certsList.size());
int i = 0;
- for (auto& cert : certsList) {
+ for (const auto& cert : certsList) {
xCertificateSequence[i++] = cert;
}
diff --git a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
index ee7b884ea343..94200051d57d 100644
--- a/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
+++ b/xmlsecurity/source/xmlsec/nss/securityenvironment_nssimpl.cxx
@@ -304,7 +304,7 @@ SecurityEnvironment_NssImpl::getPersonalCertificates()
int i = 0;
Sequence< Reference< XCertificate > > certSeq( length ) ;
- for( auto& rXCert : certsList ) {
+ for( const auto& rXCert : certsList ) {
certSeq[i] = rXCert ;
++i;
}