aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/whirlpool
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2021-04-03 12:02:27 -0400
committerJack Lloyd <[email protected]>2021-04-03 12:02:27 -0400
commit0b5554cf3edbcfcfdbb2d500c0fb45e69a047616 (patch)
treeb1d587aeb6ced348cdf79abbef6ecb100f8f6e24 /src/lib/hash/whirlpool
parentaa7958880bee2091a8a71bf9e1f6e6efb34581e3 (diff)
Use make_unique in copy_state implementations
Diffstat (limited to 'src/lib/hash/whirlpool')
-rw-r--r--src/lib/hash/whirlpool/whirlpool.cpp2
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);
}
/*