diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-21 09:31:47 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-06-25 13:59:48 +0200 |
commit | f77492425703122c9b977ba3e0f9f5fdd80a08d1 (patch) | |
tree | 7d6eef47217d715c04d74f0d7c83e1ce0b2f2f6f /src/buildtool/execution_api/common/api_bundle.hpp | |
parent | 2ad759136ae9f39e1842ef80779dfe127a19beba (diff) | |
download | justbuild-f77492425703122c9b977ba3e0f9f5fdd80a08d1.tar.gz |
Make IExecutionApi::Ptr a shared pointer to const
...and use it in ApiBundle.
Diffstat (limited to 'src/buildtool/execution_api/common/api_bundle.hpp')
-rw-r--r-- | src/buildtool/execution_api/common/api_bundle.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buildtool/execution_api/common/api_bundle.hpp b/src/buildtool/execution_api/common/api_bundle.hpp index 2f393dba..58a80677 100644 --- a/src/buildtool/execution_api/common/api_bundle.hpp +++ b/src/buildtool/execution_api/common/api_bundle.hpp @@ -33,10 +33,10 @@ struct ApiBundle final { std::optional<ServerAddress> const& remote_address); [[nodiscard]] auto CreateRemote(std::optional<ServerAddress> const& address) - const -> gsl::not_null<std::shared_ptr<IExecutionApi>>; + const -> gsl::not_null<IExecutionApi::Ptr>; - gsl::not_null<std::shared_ptr<IExecutionApi>> const local; - gsl::not_null<std::shared_ptr<IExecutionApi>> const remote; + gsl::not_null<IExecutionApi::Ptr> const local; + gsl::not_null<IExecutionApi::Ptr> const remote; }; #endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_API_COMMON_API_BUNDLE_HPP |