summaryrefslogtreecommitdiff
path: root/src/other_tools/utils/content.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/other_tools/utils/content.hpp')
-rw-r--r--src/other_tools/utils/content.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/other_tools/utils/content.hpp b/src/other_tools/utils/content.hpp
index 31dd7fc1..eb6aca76 100644
--- a/src/other_tools/utils/content.hpp
+++ b/src/other_tools/utils/content.hpp
@@ -89,9 +89,9 @@
template <Hasher::HashType type>
[[nodiscard]] static auto GetContentHash(std::string const& data) noexcept
-> std::string {
- Hasher hasher{type};
- hasher.Update(data);
- auto digest = std::move(hasher).Finalize();
+ auto hasher = Hasher::Create(type);
+ hasher->Update(data);
+ auto digest = std::move(*hasher).Finalize();
return digest.HexString();
}