summaryrefslogtreecommitdiffstats
path: root/Source/cmFileCommand.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-05-17 17:11:30 (GMT)
committerBrad King <brad.king@kitware.com>2022-05-24 13:09:44 (GMT)
commit16e6e4e7dd99c689da5fc915bd93ade28d9dbcab (patch)
tree368a075f5ed4331ef4d5408c1afb22d697c00fdc /Source/cmFileCommand.cxx
parentb89c085237b4f4b379c7974fb2c7f2689f66f16d (diff)
downloadCMake-16e6e4e7dd99c689da5fc915bd93ade28d9dbcab.zip
CMake-16e6e4e7dd99c689da5fc915bd93ade28d9dbcab.tar.gz
CMake-16e6e4e7dd99c689da5fc915bd93ade28d9dbcab.tar.bz2
cmFileCommand: remove an unnecessary cast
`cmCryptoHash::New` already returns a `unique_ptr`.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r--Source/cmFileCommand.cxx2
1 files changed, 1 insertions, 1 deletions
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<std::string> const& args,
}
std::string algo = i->substr(0, pos);
expectedHash = cmSystemTools::LowerCase(i->substr(pos + 1));
- hash = std::unique_ptr<cmCryptoHash>(cmCryptoHash::New(algo));
+ hash = cmCryptoHash::New(algo);
if (!hash) {
std::string err =
cmStrCat("DOWNLOAD EXPECTED_HASH given unknown ALGO: ", algo);