summaryrefslogtreecommitdiff
path: root/src/other_tools/utils/content.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-10-08 13:25:41 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-10-08 15:41:50 +0200
commit0e024eb055e6e8272f419e898ae9eefd0085c34f (patch)
treeb88ac4fe8c728631b53c424a8dab8c5a2f1577c6 /src/other_tools/utils/content.hpp
parenta050cfe72b6bc02a8df2cdeefa739931983462a7 (diff)
downloadjustbuild-0e024eb055e6e8272f419e898ae9eefd0085c34f.tar.gz
Name value template parameters using kCamelCase.
Diffstat (limited to 'src/other_tools/utils/content.hpp')
-rw-r--r--src/other_tools/utils/content.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/other_tools/utils/content.hpp b/src/other_tools/utils/content.hpp
index eb6aca76..15268daf 100644
--- a/src/other_tools/utils/content.hpp
+++ b/src/other_tools/utils/content.hpp
@@ -86,10 +86,10 @@
return *data;
}
-template <Hasher::HashType type>
+template <Hasher::HashType kType>
[[nodiscard]] static auto GetContentHash(std::string const& data) noexcept
-> std::string {
- auto hasher = Hasher::Create(type);
+ auto hasher = Hasher::Create(kType);
hasher->Update(data);
auto digest = std::move(*hasher).Finalize();
return digest.HexString();