diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-05-16 11:24:14 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-05-17 10:36:13 +0200 |
commit | 580539ab08a098e7f348fee3c46fbf5d44cd4d54 (patch) | |
tree | b73f35182abf0b278ba435925a6cc01381705fc4 /src/buildtool/execution_api/common/create_execution_api.hpp | |
parent | 0f96e596f42ef8619f173c547d7ee6c1be3aba12 (diff) | |
download | justbuild-580539ab08a098e7f348fee3c46fbf5d44cd4d54.tar.gz |
RepositoryConfig: Instance should not be changed once populated
Once a RepositoryConfig instance gets populated, it must never be
changed again. Therefore, all functions accepting these instances
should only take them as pointers to const.
Diffstat (limited to 'src/buildtool/execution_api/common/create_execution_api.hpp')
-rw-r--r-- | src/buildtool/execution_api/common/create_execution_api.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/common/create_execution_api.hpp b/src/buildtool/execution_api/common/create_execution_api.hpp index c62d0f17..5749a9c4 100644 --- a/src/buildtool/execution_api/common/create_execution_api.hpp +++ b/src/buildtool/execution_api/common/create_execution_api.hpp @@ -31,7 +31,7 @@ /// \param instance_name only used in the construction of the BazelApi object [[nodiscard]] static inline auto CreateExecutionApi( std::optional<ServerAddress> const& address, - std::optional<gsl::not_null<RepositoryConfig*>> const& repo_config = + std::optional<gsl::not_null<const RepositoryConfig*>> const& repo_config = std::nullopt, std::string const& instance_name = "remote-execution") -> gsl::not_null<IExecutionApi::Ptr> { |