diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-20 16:56:25 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-25 13:59:48 +0200 |
commit | e5ca9113797a23824dd4545d93221bd6379dd692 (patch) | |
tree | aa9ee982e00dada9c7e7151deb016f4fbbcee071 /src/buildtool/main/archive.cpp | |
parent | 97c43e0c768cea5486c38881cef4b0d7a4a213f5 (diff) | |
download | justbuild-e5ca9113797a23824dd4545d93221bd6379dd692.tar.gz |
Pass IExecutionApi to ServerImpl, Archive by reference
...instead of not_null const ptr.
Diffstat (limited to 'src/buildtool/main/archive.cpp')
-rw-r--r-- | src/buildtool/main/archive.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/main/archive.cpp b/src/buildtool/main/archive.cpp index 997857b4..92610397 100644 --- a/src/buildtool/main/archive.cpp +++ b/src/buildtool/main/archive.cpp @@ -49,13 +49,13 @@ void archive_entry_cleanup(archive_entry* entry) { // NOLINTNEXTLINE(misc-no-recursion) auto add_to_archive(archive* archive, - gsl::not_null<IExecutionApi*> const& api, + IExecutionApi const& api, const Artifact::ObjectInfo& artifact, const std::filesystem::path& location) -> bool { auto constexpr kExecutable = 0555; auto constexpr kFile = 0444; - auto payload = api->RetrieveToMemory(artifact); + auto payload = api.RetrieveToMemory(artifact); if (not payload) { Logger::Log(LogLevel::Error, "Failed to retrieve artifact {}", @@ -124,7 +124,7 @@ auto add_to_archive(archive* archive, } // namespace [[nodiscard]] auto GenerateArchive( - gsl::not_null<IExecutionApi*> const& api, + IExecutionApi const& api, const Artifact::ObjectInfo& artifact, const std::optional<std::filesystem::path>& output_path) -> bool { |