diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-20 14:42:52 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-25 13:59:48 +0200 |
commit | 5b3ee91c84d37fe2cd7d4ddd9d26370447564161 (patch) | |
tree | f702708f095ce8448a4dfb914269d494798a58c8 /src/buildtool/execution_api/common/common_api.hpp | |
parent | 702c9f4af93d66d97f01fcb496b3f699e3a83f6a (diff) | |
download | justbuild-5b3ee91c84d37fe2cd7d4ddd9d26370447564161.tar.gz |
Mark IExecutionApi's methods constant
Diffstat (limited to 'src/buildtool/execution_api/common/common_api.hpp')
-rw-r--r-- | src/buildtool/execution_api/common/common_api.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/buildtool/execution_api/common/common_api.hpp b/src/buildtool/execution_api/common/common_api.hpp index f657fee5..e35be206 100644 --- a/src/buildtool/execution_api/common/common_api.hpp +++ b/src/buildtool/execution_api/common/common_api.hpp @@ -61,7 +61,7 @@ struct MissingArtifactsInfo { /// original given type, or nullopt in case of exceptions. template <typename T> [[nodiscard]] auto GetMissingArtifactsInfo( - gsl::not_null<IExecutionApi*> const& api, + gsl::not_null<const IExecutionApi*> const& api, typename std::vector<T>::const_iterator const& begin, typename std::vector<T>::const_iterator const& end, typename std::function<ArtifactDigest(T const&)> const& converter) noexcept @@ -85,18 +85,18 @@ template <typename T> /// \brief Upload missing blobs from a given BlobTree. [[nodiscard]] auto CommonUploadBlobTree( BlobTreePtr const& blob_tree, - gsl::not_null<IExecutionApi*> const& api) noexcept -> bool; + gsl::not_null<const IExecutionApi*> const& api) noexcept -> bool; /// \brief Runs the compatible branch of local/bazel UploadTree API. [[nodiscard]] auto CommonUploadTreeCompatible( - gsl::not_null<IExecutionApi*> const& api, + gsl::not_null<const IExecutionApi*> const& api, DirectoryTreePtr const& build_root, BazelMsgFactory::LinkDigestResolveFunc const& resolve_links) noexcept -> std::optional<ArtifactDigest>; /// \brief Runs the native branch of local/bazel UploadTree API. [[nodiscard]] auto CommonUploadTreeNative( - gsl::not_null<IExecutionApi*> const& api, + gsl::not_null<const IExecutionApi*> const& api, DirectoryTreePtr const& build_root) noexcept -> std::optional<ArtifactDigest>; |