summaryrefslogtreecommitdiff
path: root/src/buildtool/common/tree.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-07-22 16:41:52 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-07-22 17:02:34 +0200
commit21014f3be3e4f8ebf34243f4f10841f0fb0b3843 (patch)
tree1208031cead9f9ca78d0f13a273f8242c045f3fc /src/buildtool/common/tree.hpp
parentb2f51059cc034f03c70df28a5597a591ed3e5c5d (diff)
downloadjustbuild-21014f3be3e4f8ebf34243f4f10841f0fb0b3843.tar.gz
Rename HashFunction methods and enums
Diffstat (limited to 'src/buildtool/common/tree.hpp')
-rw-r--r--src/buildtool/common/tree.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/common/tree.hpp b/src/buildtool/common/tree.hpp
index 2f33bfe0..53333901 100644
--- a/src/buildtool/common/tree.hpp
+++ b/src/buildtool/common/tree.hpp
@@ -87,8 +87,8 @@ class Tree {
static auto ComputeId(inputs_t const& inputs) -> std::string {
// The type of HashFunction is irrelevant here. It is used for
// identification of trees. SHA256 is used.
- HashFunction const hash_function{HashFunction::JustHash::Compatible};
- return hash_function.ComputeHash(ComputeDescription(inputs).dump())
+ HashFunction const hash_function{HashFunction::Type::PlainSHA256};
+ return hash_function.PlainHashData(ComputeDescription(inputs).dump())
.HexString();
}
};