diff options
author | Elliott Hughes <enh@google.com> | 2013-08-12 19:20:20 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-08-12 19:20:20 -0700 |
commit | 771ff9990e146b858ebb6ded9fd8b7a6493d3ddb (patch) | |
tree | 95afa6bb3658aa372fe2566d6a050d160582bd83 /crypto | |
parent | ae4e2dbe1f2368a7cc0fe155a59efb809d80c7ba (diff) | |
download | libcore-771ff9990e146b858ebb6ded9fd8b7a6493d3ddb.zip libcore-771ff9990e146b858ebb6ded9fd8b7a6493d3ddb.tar.gz libcore-771ff9990e146b858ebb6ded9fd8b7a6493d3ddb.tar.bz2 |
Move libcore to C++11.
Change-Id: I1942be8f7cef51265d53272f36a217e88bfede94
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/src/main/native/org_conscrypt_NativeCrypto.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crypto/src/main/native/org_conscrypt_NativeCrypto.cpp b/crypto/src/main/native/org_conscrypt_NativeCrypto.cpp index 8a59fdc..07d33b5 100644 --- a/crypto/src/main/native/org_conscrypt_NativeCrypto.cpp +++ b/crypto/src/main/native/org_conscrypt_NativeCrypto.cpp @@ -252,9 +252,8 @@ class X509Chain { X509Chain(size_t n) : x509s_(n) {} ~X509Chain() { - // TODO: C++0x auto - for (std::vector<X509*>::const_iterator it = x509s_.begin(); it != x509s_.end(); ++it) { - X509_free(*it); + for (const auto& x509 : x509s_) { + X509_free(x509); } } |