aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/sha2_64
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/hash/sha2_64')
-rw-r--r--src/lib/hash/sha2_64/sha2_64.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/hash/sha2_64/sha2_64.cpp b/src/lib/hash/sha2_64/sha2_64.cpp
index cc4690bbd..73a42824f 100644
--- a/src/lib/hash/sha2_64/sha2_64.cpp
+++ b/src/lib/hash/sha2_64/sha2_64.cpp
@@ -31,17 +31,17 @@ std::string sha512_provider()
std::unique_ptr<HashFunction> SHA_384::copy_state() const
{
- return std::unique_ptr<HashFunction>(new SHA_384(*this));
+ return std::make_unique<SHA_384>(*this);
}
std::unique_ptr<HashFunction> SHA_512::copy_state() const
{
- return std::unique_ptr<HashFunction>(new SHA_512(*this));
+ return std::make_unique<SHA_512>(*this);
}
std::unique_ptr<HashFunction> SHA_512_256::copy_state() const
{
- return std::unique_ptr<HashFunction>(new SHA_512_256(*this));
+ return std::make_unique<SHA_512_256>(*this);
}
/*