diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-06-23 10:27:05 +0200 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-06-23 12:36:10 +0200 |
commit | 80bb0a4fe8953ab90dfaf75ad19e46aa5aad00a8 (patch) | |
tree | 806ef3b19d4978cac034d583199e5e104e8648e8 /xmlsecurity | |
parent | 91ffe409e35479d024f629fe1b5ce474993a0f54 (diff) |
Gpg key listing: Use range based for loop
Change-Id: Idc7b39f751b2572f5ddd077aaad86a1f7b4b9a5d
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/gpg/SecurityEnvironment.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmlsecurity/source/gpg/SecurityEnvironment.cxx b/xmlsecurity/source/gpg/SecurityEnvironment.cxx index bc7611fa7968..37abf31111a1 100644 --- a/xmlsecurity/source/gpg/SecurityEnvironment.cxx +++ b/xmlsecurity/source/gpg/SecurityEnvironment.cxx @@ -89,10 +89,10 @@ Sequence< Reference < XCertificate > > SecurityEnvironmentGpg::getPersonalCertif } Sequence< Reference< XCertificate > > xCertificateSequence(certsList.size()); - std::list< CertificateImpl* >::iterator xcertIt; - int i; - for (i = 0, xcertIt = certsList.begin(); xcertIt != certsList.end(); ++xcertIt, ++i) - xCertificateSequence[i] = *xcertIt ; + int i = 0; + for (auto const& cert : certsList) { + xCertificateSequence[i++] = cert; + } return xCertificateSequence; } |