diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-25 10:49:27 +0100 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2025-02-27 09:03:30 +0100 |
commit | 0570178dbfd3e90f1532421dab91b510e6c42937 (patch) | |
tree | b7f8b7307765666ea21bb7f533662d767bd04665 /src/buildtool/common/artifact_blob.hpp | |
parent | a8a167cb206f6c66e52ab4e92e0939e91b8dfed8 (diff) | |
download | justbuild-0570178dbfd3e90f1532421dab91b510e6c42937.tar.gz |
ArtifactBlob: Add cpp file
Diffstat (limited to 'src/buildtool/common/artifact_blob.hpp')
-rw-r--r-- | src/buildtool/common/artifact_blob.hpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/buildtool/common/artifact_blob.hpp b/src/buildtool/common/artifact_blob.hpp index 3fc4ba23..d75a6b01 100644 --- a/src/buildtool/common/artifact_blob.hpp +++ b/src/buildtool/common/artifact_blob.hpp @@ -19,10 +19,9 @@ #include <functional> #include <memory> #include <string> -#include <utility> //std::move +#include <utility> #include "src/buildtool/common/artifact_digest.hpp" -#include "src/utils/cpp/hash_combine.hpp" class ArtifactBlob final { public: @@ -51,9 +50,7 @@ class ArtifactBlob final { /// \brief Read the content from source. [[nodiscard]] auto ReadContent() const noexcept - -> std::shared_ptr<std::string const> { - return content_; - } + -> std::shared_ptr<std::string const>; /// \brief Set executable permission. void SetExecutable(bool is_executable) noexcept { @@ -75,12 +72,7 @@ namespace std { template <> struct hash<ArtifactBlob> { [[nodiscard]] auto operator()(ArtifactBlob const& blob) const noexcept - -> std::size_t { - std::size_t seed{}; - hash_combine(&seed, blob.GetDigest()); - hash_combine(&seed, blob.IsExecutable()); - return seed; - } + -> std::size_t; }; } // namespace std |