From beb3faa6956b9bfd58d4ea6644a9b2987409aaba Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Fri, 5 Jul 2024 16:49:45 +0200 Subject: Use HashFunction functionality via Instance() ...to track changes during refactoring easier. --- src/buildtool/main/install_cas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/buildtool/main/install_cas.cpp') diff --git a/src/buildtool/main/install_cas.cpp b/src/buildtool/main/install_cas.cpp index 21f694e3..8af7a2df 100644 --- a/src/buildtool/main/install_cas.cpp +++ b/src/buildtool/main/install_cas.cpp @@ -32,7 +32,7 @@ namespace { [[nodiscard]] auto InvalidSizeString(std::string const& size_str, std::string const& hash, bool has_remote) noexcept -> bool { - static auto const kEmptyHash = HashFunction::ComputeBlobHash(""); + static auto const kEmptyHash = HashFunction::Instance().ComputeBlobHash(""); return Compatibility::IsCompatible() and // native mode is fine (size_str == "0" or size_str.empty()) and // not "0" or "" is fine kEmptyHash.HexString() != hash and // empty hash is fine -- cgit v1.2.3