From a4d8dfaa1e1af4be640558f5e634d1ddd0403c9d Mon Sep 17 00:00:00 2001 From: Alberto Sartori Date: Mon, 9 Oct 2023 11:03:42 +0200 Subject: TargetCacheKey: make TargetCacheKey(Artifact::ObjectInfo) constructor public This constructor is used by TargetService::ServeTarget --- src/buildtool/storage/target_cache_key.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/buildtool/storage/target_cache_key.hpp b/src/buildtool/storage/target_cache_key.hpp index 70d06464..d901fb9e 100644 --- a/src/buildtool/storage/target_cache_key.hpp +++ b/src/buildtool/storage/target_cache_key.hpp @@ -26,6 +26,7 @@ // Key for target cache. Created from target name and effective config. class TargetCacheKey { public: + explicit TargetCacheKey(Artifact::ObjectInfo id) : id_{std::move(id)} {} [[nodiscard]] static auto Create( std::string const& repo_key, BuildMaps::Base::NamedTarget const& target_name, @@ -43,7 +44,6 @@ class TargetCacheKey { } private: - explicit TargetCacheKey(Artifact::ObjectInfo id) : id_{std::move(id)} {} Artifact::ObjectInfo id_; }; -- cgit v1.2.3