summaryrefslogtreecommitdiffstats
path: root/Source/cmCryptoHash.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2022-05-17 16:54:39 (GMT)
committerBrad King <brad.king@kitware.com>2022-05-24 13:09:43 (GMT)
commit9409e5c04f0a534b53ce2f0e0a81c5e7e70c38f1 (patch)
tree65f6c53b866517b13a3b42ce4bd7b091f38f7808 /Source/cmCryptoHash.cxx
parenta5f8cbe8b149d4b3e1136aa4c07691397d693038 (diff)
downloadCMake-9409e5c04f0a534b53ce2f0e0a81c5e7e70c38f1.zip
CMake-9409e5c04f0a534b53ce2f0e0a81c5e7e70c38f1.tar.gz
CMake-9409e5c04f0a534b53ce2f0e0a81c5e7e70c38f1.tar.bz2
clang-tidy: address `readability-container-data-pointer` lints
Diffstat (limited to 'Source/cmCryptoHash.cxx')
-rw-r--r--Source/cmCryptoHash.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCryptoHash.cxx b/Source/cmCryptoHash.cxx
index b331862..9f369b9 100644
--- a/Source/cmCryptoHash.cxx
+++ b/Source/cmCryptoHash.cxx
@@ -182,7 +182,7 @@ void cmCryptoHash::Append(cm::string_view input)
std::vector<unsigned char> cmCryptoHash::Finalize()
{
std::vector<unsigned char> hash(rhash_get_digest_size(this->Id), 0);
- rhash_final(this->CTX, &hash[0]);
+ rhash_final(this->CTX, hash.data());
return hash;
}