Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Unified Diff: net/cert/test_root_certs_win.cc

Issue 374033002: Fixes for re-enabling more MSVC level 4 warnings: net/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comment Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/net_log.cc ('k') | net/disk_cache/blockfile/entry_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/test_root_certs_win.cc
diff --git a/net/cert/test_root_certs_win.cc b/net/cert/test_root_certs_win.cc
index 90a21d65889faf5d849442b26d8758344ad8be67..8be0e3c15718bf05eb85d29ad2ed2fb222e2f965 100644
--- a/net/cert/test_root_certs_win.cc
+++ b/net/cert/test_root_certs_win.cc
@@ -160,8 +160,10 @@ bool TestRootCerts::Add(X509Certificate* certificate) {
void TestRootCerts::Clear() {
empty_ = true;
- PCCERT_CONTEXT prev_cert = NULL;
- while (prev_cert = CertEnumCertificatesInStore(temporary_roots_, NULL))
+ for (PCCERT_CONTEXT prev_cert =
+ CertEnumCertificatesInStore(temporary_roots_, NULL);
+ prev_cert;
+ prev_cert = CertEnumCertificatesInStore(temporary_roots_, NULL))
CertDeleteCertificateFromStore(prev_cert);
}
« no previous file with comments | « net/base/net_log.cc ('k') | net/disk_cache/blockfile/entry_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698