diff options
author | Jack Lloyd <[email protected]> | 2021-04-03 12:02:27 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2021-04-03 12:02:27 -0400 |
commit | 0b5554cf3edbcfcfdbb2d500c0fb45e69a047616 (patch) | |
tree | b1d587aeb6ced348cdf79abbef6ecb100f8f6e24 /src/lib/hash/whirlpool | |
parent | aa7958880bee2091a8a71bf9e1f6e6efb34581e3 (diff) |
Use make_unique in copy_state implementations
Diffstat (limited to 'src/lib/hash/whirlpool')
-rw-r--r-- | src/lib/hash/whirlpool/whirlpool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/hash/whirlpool/whirlpool.cpp b/src/lib/hash/whirlpool/whirlpool.cpp index bded759a1..6a6899d60 100644 --- a/src/lib/hash/whirlpool/whirlpool.cpp +++ b/src/lib/hash/whirlpool/whirlpool.cpp @@ -270,7 +270,7 @@ void Whirlpool::copy_out(uint8_t output[]) std::unique_ptr<HashFunction> Whirlpool::copy_state() const { - return std::unique_ptr<HashFunction>(new Whirlpool(*this)); + return std::make_unique<Whirlpool>(*this); } /* |