diff options
Diffstat (limited to 'net/base')
-rw-r--r-- | net/base/dnssec_chain_verifier.cc | 6 | ||||
-rw-r--r-- | net/base/x509_certificate.cc | 2 | ||||
-rw-r--r-- | net/base/x509_certificate_mac.cc | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/net/base/dnssec_chain_verifier.cc b/net/base/dnssec_chain_verifier.cc index e6d31ee..6e68365 100644 --- a/net/base/dnssec_chain_verifier.cc +++ b/net/base/dnssec_chain_verifier.cc @@ -489,7 +489,7 @@ bool DNSSECChainVerifier::ReadDNSKEYs(std::vector<base::StringPiece>* out, base::StringPiece key; if (!VariableLength16(&key)) return false; - if (key.size() == 0) { + if (key.empty()) { if (!is_root) return false; key = base::StringPiece(reinterpret_cast<const char*>(kRootKey), @@ -597,7 +597,7 @@ DNSSECChainVerifier::Error DNSSECChainVerifier::EnterZone( if (!ReadAheadKey(&key, entry_key)) return BAD_DATA; - if (zone.size() == 1 && key.size() == 0) { + if (zone.size() == 1 && key.empty()) { // If a key is omitted in the root zone then it's the root key. key = base::StringPiece(reinterpret_cast<const char*>(kRootKey), sizeof(kRootKey)); @@ -609,7 +609,7 @@ DNSSECChainVerifier::Error DNSSECChainVerifier::EnterZone( if (!ReadDNSKEYs(&dnskeys, zone.size() == 1)) return BAD_DATA; - if (sig.size() == 0) { + if (sig.empty()) { // An omitted signature on the keys means that only the entry key is used. if (dnskeys.size() > 1 || entry_key != 0) return BAD_DATA; diff --git a/net/base/x509_certificate.cc b/net/base/x509_certificate.cc index 6469537..8b7014b 100644 --- a/net/base/x509_certificate.cc +++ b/net/base/x509_certificate.cc @@ -184,7 +184,7 @@ static X509Certificate::OSCertHandle CreateOSCert(base::StringPiece der_cert) { // static X509Certificate* X509Certificate::CreateFromDERCertChain( const std::vector<base::StringPiece>& der_certs) { - if (der_certs.size() == 0) + if (der_certs.empty()) return NULL; X509Certificate::OSCertHandles intermediate_ca_certs; diff --git a/net/base/x509_certificate_mac.cc b/net/base/x509_certificate_mac.cc index 3cc1e08..f9023fd 100644 --- a/net/base/x509_certificate_mac.cc +++ b/net/base/x509_certificate_mac.cc @@ -544,7 +544,7 @@ X509Certificate* X509Certificate::CreateSelfSigned( cssm_subject_names.push_back(cssm_subject_name); } - if (cssm_subject_names.size() == 0) { + if (cssm_subject_names.empty()) { DLOG(ERROR) << "cssm_subject_names.size() == 0. Input: " << subject; return NULL; } |