diff options
author | Jack Lloyd <[email protected]> | 2021-04-03 15:55:37 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2021-04-03 16:25:44 -0400 |
commit | b1d7b48b39139bf691b27a1cfc3c5feb9fbe8f30 (patch) | |
tree | 91efb45012a4cab290d73feac6847e0df036911e /src/lib/hash/sha1 | |
parent | d8ea823bf61af0bc9feb637afea8671c74c70e38 (diff) |
Add HashFunction::new_object
Diffstat (limited to 'src/lib/hash/sha1')
-rw-r--r-- | src/lib/hash/sha1/sha160.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/hash/sha1/sha160.h b/src/lib/hash/sha1/sha160.h index dd834d4ba..8e3b046b4 100644 --- a/src/lib/hash/sha1/sha160.h +++ b/src/lib/hash/sha1/sha160.h @@ -20,7 +20,7 @@ class SHA_160 final : public MDx_HashFunction public: std::string name() const override { return "SHA-160"; } size_t output_length() const override { return 20; } - HashFunction* clone() const override { return new SHA_160; } + std::unique_ptr<HashFunction> new_object() const override { return std::make_unique<SHA_160>(); } std::unique_ptr<HashFunction> copy_state() const override; void clear() override; |