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

Unified Diff: crypto/signature_verifier.cc

Issue 2095523002: Make //crypto factories return std::unique_ptr<>s (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I'm blind Created 4 years, 6 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 | « crypto/signature_creator.cc ('k') | crypto/symmetric_key.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/signature_verifier.cc
diff --git a/crypto/signature_verifier.cc b/crypto/signature_verifier.cc
index f4a3d4f0f19845299f676dde7c8913dd4b2eb538..236b64c594d14de25342cfbb41d36866f1da2298 100644
--- a/crypto/signature_verifier.cc
+++ b/crypto/signature_verifier.cc
@@ -27,7 +27,7 @@ const EVP_MD* ToOpenSSLDigest(SignatureVerifier::HashAlgorithm hash_alg) {
case SignatureVerifier::SHA256:
return EVP_sha256();
}
- return NULL;
+ return nullptr;
}
} // namespace
@@ -36,9 +36,7 @@ struct SignatureVerifier::VerifyContext {
ScopedEVP_MD_CTX ctx;
};
-SignatureVerifier::SignatureVerifier()
- : verify_context_(NULL) {
-}
+SignatureVerifier::SignatureVerifier() : verify_context_(nullptr) {}
SignatureVerifier::~SignatureVerifier() {
Reset();
@@ -153,7 +151,7 @@ bool SignatureVerifier::CommonInit(int pkey_type,
void SignatureVerifier::Reset() {
delete verify_context_;
- verify_context_ = NULL;
+ verify_context_ = nullptr;
signature_.clear();
}
« no previous file with comments | « crypto/signature_creator.cc ('k') | crypto/symmetric_key.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698