summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/common/api_bundle.hpp
diff options
context:
space:
mode:
authorMaksim Denisov <denisov.maksim@huawei.com>2024-06-25 16:47:10 +0200
committerMaksim Denisov <denisov.maksim@huawei.com>2024-06-27 11:24:20 +0200
commit3f75861a2d60fc5a2fd9c9894267f1df72f66c47 (patch)
tree2003b1e9c33e96d38110d32b6160c04c984def55 /src/buildtool/execution_api/common/api_bundle.hpp
parent4625d391cad4d04f9adca4484da687b2adb1fed6 (diff)
downloadjustbuild-3f75861a2d60fc5a2fd9c9894267f1df72f66c47.tar.gz
Use a raw pointer for passing optional RepositoryConfig
...instead of std::optional<gsl::not_null<RepositoryConfig const*>>.
Diffstat (limited to 'src/buildtool/execution_api/common/api_bundle.hpp')
-rw-r--r--src/buildtool/execution_api/common/api_bundle.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/buildtool/execution_api/common/api_bundle.hpp b/src/buildtool/execution_api/common/api_bundle.hpp
index 58a80677..53e59de2 100644
--- a/src/buildtool/execution_api/common/api_bundle.hpp
+++ b/src/buildtool/execution_api/common/api_bundle.hpp
@@ -27,10 +27,8 @@
/// same time. If the remote api cannot be instantiated, it falls back to
/// exactly the same instance that local api is (&*remote == & *local).
struct ApiBundle final {
- explicit ApiBundle(
- std::optional<gsl::not_null<const RepositoryConfig*>> const&
- repo_config,
- std::optional<ServerAddress> const& remote_address);
+ explicit ApiBundle(RepositoryConfig const* repo_config,
+ std::optional<ServerAddress> const& remote_address);
[[nodiscard]] auto CreateRemote(std::optional<ServerAddress> const& address)
const -> gsl::not_null<IExecutionApi::Ptr>;