From 16e6e4e7dd99c689da5fc915bd93ade28d9dbcab Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Tue, 17 May 2022 13:11:30 -0400 Subject: cmFileCommand: remove an unnecessary cast `cmCryptoHash::New` already returns a `unique_ptr`. --- Source/cmFileCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 71aa134..27ec564 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -1870,7 +1870,7 @@ bool HandleDownloadCommand(std::vector const& args, } std::string algo = i->substr(0, pos); expectedHash = cmSystemTools::LowerCase(i->substr(pos + 1)); - hash = std::unique_ptr(cmCryptoHash::New(algo)); + hash = cmCryptoHash::New(algo); if (!hash) { std::string err = cmStrCat("DOWNLOAD EXPECTED_HASH given unknown ALGO: ", algo); -- cgit v0.12