diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-05-17 17:11:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-05-24 13:09:44 (GMT) |
commit | 16e6e4e7dd99c689da5fc915bd93ade28d9dbcab (patch) | |
tree | 368a075f5ed4331ef4d5408c1afb22d697c00fdc /Source/cmFileCommand.cxx | |
parent | b89c085237b4f4b379c7974fb2c7f2689f66f16d (diff) | |
download | CMake-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.cxx | 2 |
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); |