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

Unified Diff: crypto/secure_hash_default.cc

Issue 825503002: Standardize usage of virtual/override/final specifiers in crypto/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/rsa_private_key_nss_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/secure_hash_default.cc
diff --git a/crypto/secure_hash_default.cc b/crypto/secure_hash_default.cc
index 1f5e59ba2aba4c0526444d7304914258b1113204..262beb7fd18329c48c66978ec3a85e04fba45570 100644
--- a/crypto/secure_hash_default.cc
+++ b/crypto/secure_hash_default.cc
@@ -23,22 +23,20 @@ class SecureHashSHA256NSS : public SecureHash {
SHA256_Begin(&ctx_);
}
- virtual ~SecureHashSHA256NSS() {
- memset(&ctx_, 0, sizeof(ctx_));
- }
+ ~SecureHashSHA256NSS() override { memset(&ctx_, 0, sizeof(ctx_)); }
// SecureHash implementation:
- virtual void Update(const void* input, size_t len) override {
+ void Update(const void* input, size_t len) override {
SHA256_Update(&ctx_, static_cast<const unsigned char*>(input), len);
}
- virtual void Finish(void* output, size_t len) override {
+ void Finish(void* output, size_t len) override {
SHA256_End(&ctx_, static_cast<unsigned char*>(output), NULL,
static_cast<unsigned int>(len));
}
- virtual bool Serialize(Pickle* pickle) override;
- virtual bool Deserialize(PickleIterator* data_iterator) override;
+ bool Serialize(Pickle* pickle) override;
+ bool Deserialize(PickleIterator* data_iterator) override;
private:
SHA256Context ctx_;
« no previous file with comments | « crypto/rsa_private_key_nss_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698